* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #000000;
}

:root {
    /* tweak the globe blur here */
    --globe-blur: 10.0px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    min-height: 100vh;
}

/* Layer for the stars background so we can control stacking order */
.stars-layer {
    position: fixed;
    inset: 0;
    background: url('../images/2k_stars_milky_way.jpg') center/cover no-repeat;
    opacity: 0.5;
    z-index: 0; /* base layer for stars */
    pointer-events: none; /* decorative only */
}

/* Decorative globe layer behind the content */
.globe-layer {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    pointer-events: none; /* non-interactive */
    z-index: 1; /* above stars (0), below main (3) */
}

/* solid-ish backdrop that covers stars where the globe sits */
.globe-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1; /* sits above stars (0) */
    pointer-events: none;
}

/* globe image sits above the backdrop so its transparent pixels won't reveal stars */
.globe-layer::after {
    /* keep an empty pseudo-element so the backdrop layering remains stable across browsers */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1; /* sits behind the actual img which will be z-index:2 */
    pointer-events: none;
}

.globe-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 55vmin; /* slightly larger globe */
    max-width: 80vw;
    height: auto;
    z-index: 2; /* above backdrop, below main */
    pointer-events: none;
    opacity: 0.98;
    -webkit-filter: blur(var(--globe-blur));
    filter: blur(var(--globe-blur));
}

/* Ensure main content stacks above globe layer */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 0px 0;
    position: relative;
    z-index: 3; /* topmost: content */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 20px 0;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
}

.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
}

.logo {
    width: 300px;
    height: auto;
    display: inline-block;
}

.signup-container {
    /* darker gray background for signup container */
    background: rgba(40, 40, 40, 0.70);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 350px;
    max-width: 350px;
}

.huvudfoting {
    margin-top: 40px;
    display: block;
}

.signup-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-align: center;
}

.signup-subtitle {
    color: #a0aec0;
    margin-bottom: 55px;
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e2e8f0;
}

input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    margin-bottom: 16px;
}

input[type="email"]::placeholder {
    color: #a0aec0;
}

input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    background: #00a86b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.message {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
}

.footer-text {
    color: #6b7280;
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
}


/* Make the footer spacing more reliable on small screens by using padding-bottom on main */
.main--with-footer-padding {
    padding-bottom: 120px; /* leave room for globe and footer */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .signup-container {
        margin: 0 20px;
        padding: 32px 24px;
    }

    .huvudfoting {
        margin-top: 30px;
        width: 140px; /* reduce size on small screens */
    }

    .globe-image {
        width: 70vmin; /* increased for mobile */
        -webkit-filter: blur(var(--globe-blur));
        filter: blur(var(--globe-blur));
    }
}