@layer pages {
    .login-stage {
        position: relative;
        overflow: hidden;
        min-height: calc(100vh - 201px);
        display: grid;
        align-items: center;
        padding: clamp(3rem, 7vw, 6.5rem) 0;
        background:
            radial-gradient(circle at 7% 20%, rgba(240, 182, 61, .18), transparent 26rem),
            linear-gradient(125deg, #f7faf6 0%, #eef5f0 53%, #dfece5 100%);
    }

    .login-stage::after {
        content: "";
        position: absolute;
        right: -9rem;
        bottom: -15rem;
        width: 38rem;
        height: 38rem;
        border: 5rem solid rgba(13, 63, 52, .035);
        border-radius: 50%;
        pointer-events: none;
    }

    .login-layout {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
        align-items: center;
        gap: clamp(3rem, 8vw, 7rem);
    }

    .login-introduction { max-width: 640px; }

    .login-introduction h1 {
        margin: .9rem 0 1.25rem;
        font-size: clamp(3rem, 6.8vw, 5.8rem);
        letter-spacing: -.065em;
    }

    .login-lead {
        max-width: 610px;
        color: #41534c;
        font-size: clamp(1.05rem, 2vw, 1.28rem);
        line-height: 1.55;
    }

    .office-note {
        display: flex;
        align-items: flex-start;
        gap: .85rem;
        max-width: 590px;
        margin-top: 2rem;
        padding: 1rem 1.1rem;
        border-left: 4px solid var(--gold);
        border-radius: 0 var(--radius-small) var(--radius-small) 0;
        color: #405149;
        background: rgba(255, 255, 255, .62);
        box-shadow: var(--shadow-soft);
    }

    .office-note-icon {
        flex: 0 0 auto;
        width: 1.55rem;
        height: 1.55rem;
        display: grid;
        place-items: center;
        margin-top: .1rem;
        border-radius: 50%;
        color: white;
        background: var(--leaf);
        font-size: .8rem;
        font-weight: 900;
    }

    .login-card-wrap { width: 100%; max-width: 470px; justify-self: end; }

    .login-help {
        margin-top: 1.5rem;
        padding-top: 1.2rem;
        border-top: 1px solid var(--border);
        color: var(--muted);
        font-size: .84rem;
        text-align: center;
    }

    .security-note {
        margin-top: 1rem;
        color: #53675e;
        font-size: .76rem;
        text-align: center;
    }

    .security-note span { margin-right: .35rem; color: var(--leaf); }
}

@media (max-width: 820px) {
    .login-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .login-introduction { text-align: center; margin-inline: auto; }
    .office-note { text-align: left; }
    .login-card-wrap { justify-self: center; }
}

@media (max-width: 560px) {
    .header-inner { min-height: 82px; }
    .doghouse-brand img { width: 48px; }
    .doghouse-brand strong { font-size: 1.2rem; }
    .doghouse-brand small { font-size: .65rem; letter-spacing: .07em; }
    .private-badge { display: none; }
    .login-stage { padding: 2.5rem 0 3.5rem; }
    .login-introduction h1 { font-size: 3.15rem; }
    .footer-inner { padding: 1.5rem 0; flex-direction: column; text-align: center; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

