body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse at top left, rgba(31,99,164,.15), transparent 35%),
        radial-gradient(ellipse at bottom right, rgba(63,131,197,.10), transparent 30%),
        linear-gradient(160deg, #EBF3FB 0%, var(--bg-page, #F4F7FB) 100%);
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(31,99,164,.10);
    border-radius: 24px;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 56px rgba(7,25,41,.13), 0 1px 0 rgba(255,255,255,.8) inset;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-700, #0f3560), var(--primary-500), var(--accent), var(--primary-400));
    border-radius: 28px 28px 0 0;
}

.login-back-link {
    width: fit-content;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-100);
    border: 1px solid var(--border);
    color: var(--primary-600);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease;
}
.login-back-link:hover {
    background: var(--primary-200);
    border-color: var(--primary-300);
}

.login-logo {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.login-logo span { color: var(--accent); }

.login-heading {
    margin: 0;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-500);
}

.login-subtitle {
    margin: 6px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.login-form {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.login-form .form-group { display: grid; gap: 8px; }

.login-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.login-form input {
    width: 100%;
    min-height: 46px;
    border-radius: var(--radius-full, 9999px);
    border: 1.5px solid rgba(31,99,164,.14);
    background: var(--bg-subtle, #EEF3F9);
    padding: 0 18px;
    font-size: .92rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-form input::placeholder { color: var(--text-muted); }

.login-form input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(31,99,164,.10);
    background: #ffffff;
}

.login-message {
    min-height: 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    transition: all 0.25s ease;
}

.login-message.error {
    padding: 12px 14px;
    background: rgba(178, 59, 50, 0.08);
    color: #a63b32;
    border: 1px solid rgba(178, 59, 50, 0.14);
}

.login-message.success {
    padding: 12px 14px;
    background: rgba(46, 125, 70, 0.08);
    color: #2f6b3c;
    border: 1px solid rgba(46, 125, 70, 0.14);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.login-store-text {
    margin: 8px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.login-helper-text { margin-top: -6px; }

.login-link {
    color: var(--primary-500);
    font-weight: 700;
    text-decoration: none;
    transition: color 150ms ease;
}
.login-link:hover {
    color: var(--primary-400);
    text-decoration: underline;
}

@media (max-width: 520px) {
    .login-shell    { padding: 12px 10px; }
    .login-card     { padding: 20px 16px 18px; border-radius: 18px; }
    .login-logo     { font-size: 1.7rem; }
    .login-heading  { font-size: 1.35rem; }
    .login-subtitle { font-size: 0.82rem; }
    .login-form input, #login-submit { min-height: 44px; font-size: 0.9rem; }
    .login-form     { gap: 12px; margin-top: 14px; }
    .login-back-link { font-size: 0.82rem; min-height: 44px; }
    .login-store-text { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
    .login-card, .login-form input, #login-submit { transition: none; animation: none; }
}

/* ============================================================
   PREMIUM ADDITIONS
   ============================================================ */

/* Card entrance animation */
.login-card {
    animation: loginFadeUp .45s cubic-bezier(.16,1,.3,1) both;
}

@keyframes loginFadeUp {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1);   }
}

/* Submit button — full orange gradient */
#login-submit {
    min-height: 52px;
    width: 100%;
    border: none;
    border-radius: var(--radius-full, 9999px);
    background: linear-gradient(135deg, var(--accent, #FF7A00), #FF9020);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: .93rem;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(255,122,0,.28);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
    position: relative;
    overflow: hidden;
}

#login-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
    pointer-events: none;
}

#login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255,122,0,.36);
    filter: brightness(1.05);
}

#login-submit:active:not(:disabled) {
    transform: translateY(0);
}

#login-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Divider between footer links */
.login-store-text + .login-store-text {
    padding-top: 6px;
    border-top: 1px solid rgba(31,99,164,.08);
}

/* Password input wrapper with eye toggle */
.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap input {
    flex: 1;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #a0aab4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.18s ease;
    line-height: 0;
}

.toggle-password:hover {
    color: #1f63a4;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.eye-closed {
    display: none;
}

.toggle-password.is-showing .eye-open {
    display: none;
}

.toggle-password.is-showing .eye-closed {
    display: block;
}
