:root {
    --login-orange-top: #fffcf5;
    --login-orange-mid: #ffd7a6;
    --login-orange-bright: #ffb347;
    --login-orange-deep: #ff8a00;
    --login-orange-shadow: rgba(255, 138, 0, 0.5);
    --login-text: #2a1205;
    --login-muted: rgba(42, 18, 5, 0.7);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 25px 60px rgba(255, 138, 0, 0.25);
}

body.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--login-orange-deep) 0%, var(--login-orange-mid) 45%, var(--login-orange-top) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--login-text);
    position: relative;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 183, 77, 0.35), transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.4), transparent 55%),
        radial-gradient(circle at 50% 80%, rgba(255, 138, 0, 0.3), transparent 65%),
        linear-gradient(180deg, var(--login-orange-deep), var(--login-orange-top));
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

body.login-page::after {
    content: "";
    position: fixed;
    inset: 20% 10% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

main {
    padding: 0;
}

.login-hero {
    min-height: calc(100vh - 120px);
    padding: clamp(32px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-hero__glow {
    position: absolute;
    border-radius: 50%;
    opacity: 0.45;
    filter: blur(120px);
    pointer-events: none;
}

.glow-one {
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, 0.65);
    top: 10%;
    right: 15%;
}

.glow-two {
    width: 520px;
    height: 520px;
    background: rgba(255, 138, 0, 0.4);
    bottom: -10%;
    left: -5%;
}

.glow-three {
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.25);
    top: 30%;
    left: 60%;
}

.login-hero__grid {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(32px, 4vw, 64px);
    align-items: stretch;
    z-index: 1;
}

.login-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 4vw, 40px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(28px);
    box-shadow: 0 40px 80px rgba(255, 138, 0, 0.25);
}

.login-copy__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--login-muted);
    margin: 0;
}

.login-copy__title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.07em;
    font-weight: 400;
}

.login-copy__lead {
    margin: 0;
    color: rgba(42, 18, 5, 0.8);
    line-height: 1.6;
}

.login-copy__tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.login-copy__tags span {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b04404;
}

.login-card {
    background: rgba(10, 3, 0, 0.3);
    border-radius: 34px;
    padding: clamp(28px, 5vw, 40px);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(26px);
}

.login-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.login-card--orange {
    background: rgba(20, 6, 0, 0.7);
}

.login-card__header {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
}

.login-card__label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--login-muted);
    margin: 0 0 8px;
}

.login-card__header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: 0.1em;
}

.login-card__desc {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.65);
}

.login-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-field__label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.7);
}

.login-field input {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input:focus {
    border-color: var(--login-orange-bright);
    box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.15);
}

.login-helpers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-remember input {
    accent-color: var(--login-orange-bright);
}

.login-helper-link {
    border: none;
    background: transparent;
    color: #fff;
    text-decoration: underline;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
}

.login-submit {
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: #2a1205;
    background: linear-gradient(120deg, var(--login-orange-bright), var(--login-orange-deep));
    box-shadow: 0 18px 30px rgba(42, 18, 5, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(42, 18, 5, 0.4);
}

.login-meta {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.login-meta a {
    color: #ffe5d0;
    text-decoration: none;
}

/* Header overrides when login background is active */
body.login-page .header-brand .brand-title,
body.login-page .header-greeting {
    color: #fff5eb;
}

body.login-page .nav-link {
    color: rgba(255, 245, 235, 0.9); /* #fff5eb with 90% opacity */
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}

body.login-page .nav-link .nav-caret {
    color: rgba(255, 245, 235, 0.7); /* #fff5eb with 70% opacity */
}

body.login-page .nav-link:hover,
body.login-page .nav-link:focus-visible {
    color: #fff5eb;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.65);
}

body.login-page .header-button {
    background: #fff;
    color: #0a1127;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 840px) {
    .login-hero__grid {
        grid-template-columns: 1fr;
    }

    .login-copy,
    .login-card {
        padding: 24px;
    }

    .login-meta {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
