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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: #faf8f3;
            color: #1A2C57;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .login-container {
            background: white;
            border: 1px solid #e4dfd3;
            border-radius: 8px;
            width: 100%;
            max-width: 420px;
            padding: 48px 40px;
        }

        .logo {
            text-align: center;
            margin-bottom: 32px;
        }

        .logo img {
            max-width: 280px;
            height: auto;
            margin-bottom: 8px;
        }

        .logo p {
            color: #42506e;
            font-size: 15px;
        }

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

        label {
            display: block;
            color: #1A2C57;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        input[type="email"],
        input[type="password"] {
            width: 100%;
            /* 4.3 — measured 268x43 at 390. One pixel short of 44 is still short. */
            min-height: 44px;
            padding: 12px 16px;
            border: 1px solid #e4dfd3;
            border-radius: 8px;
            font-size: 15px;
            transition: all 0.2s;
            background: white;
        }

        input[type="email"]:focus,
        input[type="password"]:focus {
            outline: none;
            border-color: #1A2C57;
        }

        .btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: #1A2C57;
            color: white;
            border: 1px solid #1A2C57;
            margin-bottom: 16px;
        }

        .btn-primary:hover {
            background: #22376b;
        }

        .btn-primary:disabled {
            background: #cfc9ba;
            cursor: not-allowed;
            transform: none;
        }

        .btn-google {
            background: white;
            color: #1A2C57;
            border: 1px solid #e4dfd3;
        }

        .btn-google:hover {
            border-color: #c9a23a;
        }

        .divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 24px 0;
            color: #8a8470;
            font-size: 13px;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #e4dfd3;
        }

        .divider span {
            padding: 0 16px;
        }

        .forgot-password {
            text-align: right;
            margin-top: -16px;
            margin-bottom: 24px;
        }

        .forgot-password a {
            color: #8f7220;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
        }

        .forgot-password a:hover {
            text-decoration: underline;
        }

        .alert {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
        }

        .alert-error {
            background: #fdecea;
            color: #8f2b1e;
            border: 1px solid #f2c4bc;
        }

        .alert-success {
            background: #e8f5ee;
            color: #2d7a4f;
            border: 1px solid #bfe0cd;
        }

        .alert-info {
            background: #faf8f3;
            color: #42506e;
            border: 1px solid #e4dfd3;
        }

        .spinner {
            border: 2px solid #e4dfd3;
            border-top: 2px solid white;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .footer {
            text-align: center;
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid #e4dfd3;
            color: #42506e;
            font-size: 13px;
        }

        .footer a {
            color: #8f7220;
            text-decoration: none;
            font-weight: 500;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        #resetPasswordForm {
            display: none;
        }

        .back-link {
            color: #8f7220;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-bottom: 24px;
        }

        .back-link:hover {
            text-decoration: underline;
        }
