/* ==========================================================================
   GLOBAL RESET & ENVIRONMENT
   ========================================================================== */
html {
    background-color: #0A0A0A;
    scroll-behavior: smooth;
    height: 100%;
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0A0A0A;
    color: #FFFFFF;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

/* Atmospheric Background Glow Highlights */
.bg-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 128, 128, 0.03) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   FIXED TOP-LEFT BRANDING HEADER
   ========================================================================== */
.global-header {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.global-header:hover {
    transform: translateY(-1px);
}

#logo-img {
    height: 75px;
    width: auto;
}

.nav-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-left: -30px;
    margin-top: 10px;
    letter-spacing: -0.5px;
}

.soma { color: #FFFFFF; }
.reel { color: #D4AF37; }

/* ==========================================================================
   CENTRAL SIGNUP CARD
   ========================================================================== */
.container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.signup-box {
    background: #0F0F0F;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    padding: 44px 36px;
    width: 100%;
    animation: fadeInStep 0.35s ease forwards;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 6px;
}

.login-subtext {
    font-size: 0.95rem;
    color: #666666;
    text-align: center;
    margin-bottom: 32px;
}

/* ==========================================================================
   FORM FIELDS
   ========================================================================== */
#signupForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    width: 100%;
    position: relative;
}

#signupForm input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: #FFFFFF;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#signupForm input:focus {
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.08);
}

/* ==========================================================================
   PASSWORD INTERACTIVE SYSTEM
   ========================================================================== */
.password-container input {
    padding-right: 54px !important;
}

.eye-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #555555;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.eye-icon:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   ACTION BUTTON SYSTEM
   ========================================================================== */
.action-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #AA8811 100%);
    color: #000000;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.submit-btn:disabled {
    cursor: not-allowed;
}

.login-link {
    margin-top: 28px;
    font-size: 0.9rem;
    color: #666666;
    text-align: center;
}

.login-link a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-link a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.message {
    margin-top: 20px;
    min-height: 24px;
}

/* Mobile Alignment Guard */
@media (max-width: 500px) {
    .global-header {
        top: 24px;
        left: 24px;
    }
    body {
        padding-top: 100px;
    }
    .signup-box {
        padding: 32px 24px;
    }
}