
/* ==================================
   EARNOVA - USER LOGIN PAGE
   Navy, Blue & Champagne Gold Theme
================================== */

:root {
    --black: #192D59;
    --black-soft: #243B6B;
    --gold: #3467B2;
    --gold-light: #80B5E8;
    --gold-dark: #254F91;
    --white: #FFFFFF;
    --cream: #FBF8EF;
    --text: #192D59;
    --muted: #718099;
    --border: #E6E6E2;
    --soft-gold: #F3E9CF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #FFFDF8 30%,
        #FBF8EF 70%,
        #F3E9CF 100%
    );
    color: var(--text);
    min-height: 100vh;
}

/* Page Layout */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    position: relative;
    overflow: hidden;
}

/* Subtle Background Decoration */

.login-page::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    top: -220px;
    right: -180px;
    background: radial-gradient(
        circle,
        rgba(128, 181, 232, 0.16),
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.login-page::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    bottom: -230px;
    left: -180px;
    background: radial-gradient(
        circle,
        rgba(52, 103, 178, 0.10),
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

/* Login Card */

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid rgba(25, 45, 89, 0.08);
    border-radius: 18px;
    padding: 42px 36px;
    box-shadow: 0 18px 55px rgba(25, 45, 89, 0.09);
    position: relative;
    z-index: 1;
}

/* Earnova Branding */

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--black);
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 32px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--black);
    color: var(--gold-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Heading */

.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

.login-heading h1 {
    font-size: 27px;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.6px;
}

.login-heading p {
    font-size: 14px;
    color: var(--muted);
}

/* Form */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    background: #FFFDF9;
    color: var(--text);
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9AA5B5;
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(52, 103, 178, 0.12);
    background: var(--white);
}

/* Password Visibility */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 75px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--gold);
}

/* Forgot Password */

.forgot-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 22px;
}

.forgot-password a {
    color: var(--gold-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Login Button */

.login-button {
    width: 100%;
    height: 48px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.login-button:hover {
    background: var(--gold-dark);
    box-shadow: 0 6px 18px rgba(52, 103, 178, 0.18);
}

.login-button:active {
    transform: translateY(1px);
}

.login-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* Feedback Messages */

.form-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.form-message[hidden] {
    display: none;
}

.form-message.error {
    background: #FFF0F0;
    color: #A11A1A;
    border: 1px solid #F2C5C5;
}

.form-message.success {
    background: #EFFAF1;
    color: #176B32;
    border: 1px solid #B9E6C4;
}

/* Registration Link */

.register-link {
    margin-top: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.register-link a {
    color: var(--gold-dark);
    font-weight: 700;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Accessibility */

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Mobile Responsiveness */

@media (max-width: 480px) {
    .login-card {
        padding: 32px 22px;
        border-radius: 14px;
    }

    .login-heading h1 {
        font-size: 24px;
    }

    .login-page {
        padding: 20px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
