/* Login-specific styles extracted from common.css on 2026-04-05. */

        body.auth-screen {
            background: var(--branding-login-bg);
        }

        body.auth-screen .topbar,
        body.auth-screen .hero,
        body.auth-screen .kpi-grid {
            display: none;
        }

        body.auth-screen .app-copyright {
            display: none;
        }

        body:not(.auth-screen) #view-auth {
            display: none !important;
            min-height: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
        }

        body.auth-screen .section,
        body.auth-screen .topbar,
        body.auth-screen .hero,
        body.auth-screen .kpi-grid,
        body.auth-screen .app-copyright {
            display: none !important;
        }

        body.auth-screen .shell {
            grid-template-columns: 1fr;
            grid-template-rows: 1fr;
            max-width: none;
            padding: 0;
            min-height: 100vh;
        }

        .auth-topline {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .auth-lang {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 0;
            margin-left: auto;
        }

        .auth-card {
            padding: 0;
            overflow: hidden;
            background:
                linear-gradient(140deg, rgba(0, 51, 73, 0.98) 0%, rgba(104, 152, 173, 0.92) 42%, rgba(255, 255, 255, 1) 42%);
        }

        .auth-hero {
            padding: 20px 18px 18px;
            color: #fff;
            min-height: 156px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        .auth-hero h2 { margin: 0 0 8px; font-size: 1.08rem; }

        .auth-hero p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.75rem; line-height: 1.55; max-width: 240px; }

        .auth-panel {
            margin: 0 14px 14px auto;
            width: min(100%, 340px);
            padding: 18px 16px 16px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.97);
            border: 1px solid rgba(255, 255, 255, 0.76);
            box-shadow: 0 20px 30px rgba(0, 51, 73, 0.14);
            backdrop-filter: blur(16px);
        }

        .auth-panel-head { margin-bottom: 14px; }

        .auth-panel-head h3 { margin: 0 0 6px; font-size: 1rem; }

        .auth-panel-head p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }

        .auth-note { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }

        .auth-footer {
            margin-top: 8px;
            padding-top: 12px;
            border-top: 1px solid var(--line-soft);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .auth-link {
            border: none;
            padding: 0;
            background: transparent;
            color: var(--primary);
            font-size: 0.74rem;
            font-weight: 800;
            cursor: pointer;
        }

        .auth-link:hover { color: var(--accent); }

        .auth-copy-kicker:empty {
            display: none !important;
        }

        .auth-stage {
            grid-column: 1 / -1;
            min-height: 100vh;
            display: none;
            background: var(--branding-login-bg);
        }

        .auth-stage.active { display: block; }
        .auth-stage:not(.active) {
            min-height: 0;
            height: 0;
            overflow: hidden;
        }

        .auth-shell {
            min-height: 100vh;
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) minmax(380px, 440px);
            background: var(--branding-login-bg);
        }

        .auth-visual {
            position: relative;
            padding: 48px 44px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            overflow: hidden;
            background: var(--branding-login-bg);
        }

        .auth-visual::before {
            content: "";
            position: absolute;
            inset: 0;
            background: transparent;
            pointer-events: none;
        }

        .auth-signature { position: relative; z-index: 1; }

        .auth-brand {
            display: flex;
            align-items: center;
            gap: 14px;
            color: #fff;
        }

        .auth-brand .brand-mark {
            min-width: 76px;
            width: 76px;
            height: 76px;
        }

        .auth-brand .brand-mark img {
            filter: brightness(0) invert(1);
        }

        .auth-brand-text strong {
            display: block;
            margin-bottom: 6px;
            font-size: 0.76rem;
            letter-spacing: 0.08em;
            text-transform: none;
            opacity: 0.84;
        }

        .auth-brand-text span {
            font-family: "Plus Jakarta Sans", "Noto Sans KR", sans-serif;
            font-size: 1.18rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .auth-copy {
            max-width: 620px;
            color: #fff;
            margin-top: auto;
            margin-bottom: auto;
        }

        .auth-copy-kicker {
            margin: 0 0 18px;
            color: rgba(255, 255, 255, 0.62);
            font-size: 0.76rem;
            font-weight: 700;
            letter-spacing: 0.32em;
            text-transform: uppercase;
        }

        .auth-copy h2 {
            display: flex;
            align-items: baseline;
            gap: 14px;
            margin: 0;
            font-family: Georgia, "Times New Roman", serif;
            font-size: clamp(6.8rem, 13.8vw, 11rem);
            font-weight: 500;
            line-height: 0.84;
            letter-spacing: -0.06em;
            text-transform: none;
            text-shadow: none;
        }

        .auth-title-on {
            display: inline-block;
            background: none;
            -webkit-text-fill-color: currentColor;
        }

        .auth-title-store {
            color: #ffffff;
        }

        .auth-title-on {
            color: var(--branding-login-title-accent);
            filter: none;
        }

        .auth-copy-tagline {
            margin-top: 24px;
            font-family: Georgia, "Times New Roman", serif;
            font-size: clamp(2.6rem, 5vw, 4.3rem);
            font-weight: 500;
            line-height: 0.92;
            letter-spacing: -0.045em;
            color: #ffffff;
            text-shadow: none;
        }

        .auth-copy-tagline > span {
            display: block;
        }

        .auth-copy-tagline .accent {
            color: var(--branding-login-tagline-accent);
        }

        .auth-copy-tagline .accent-line {
            color: var(--branding-login-tagline-accent);
        }

        .auth-signature {
            position: absolute;
            z-index: 1;
            right: 44px;
            bottom: 44px;
            width: 180px;
            opacity: 0.98;
        }

        .auth-copyright {
            position: absolute;
            left: 50%;
            bottom: 52px;
            transform: translateX(-50%);
            width: max-content;
            max-width: calc(100% - 48px);
            color: rgba(0, 51, 73, 0.22);
            font-size: 0.76rem;
            font-weight: 300;
            line-height: 1.5;
            letter-spacing: 0.03em;
            text-align: center;
        }

        .auth-signature img {
            display: block;
            width: 100%;
            height: auto;
            filter: brightness(0) invert(1);
        }

        .auth-pane {
            padding: 28px 24px 56px;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: #d7e2ef;
            backdrop-filter: none;
        }

        .auth-box {
            width: 100%;
            max-width: 360px;
            padding: 22px 20px;
            border-radius: 0;
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(210, 218, 207, 0.92);
            box-shadow: 0 18px 32px rgba(0, 51, 73, 0.12);
        }

        .auth-box-head {
            margin-bottom: 14px;
        }

        .auth-box-head strong {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            margin-bottom: 6px;
            color: var(--primary);
            font-size: 0.74rem;
            font-weight: 800;
            letter-spacing: 0.16em;
            text-transform: uppercase;
        }

        .auth-box-head h3 {
            margin: 0 0 6px;
            font-size: 1.38rem;
        }

        .auth-box-head p {
            margin: 0;
            color: var(--muted);
            font-size: 0.76rem;
            line-height: 1.6;
        }

        .auth-storage-state {
            display: inline-flex;
            align-items: center;
            gap: 0;
            margin: 0;
            color: #8f9ba5;
            font-size: 0.74rem;
            font-weight: 500;
            line-height: 1;
            letter-spacing: 0;
            vertical-align: middle;
        }

        .auth-box-head .auth-storage-state { transform: translateY(-1px); }

        .auth-storage-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--danger);
            flex-shrink: 0;
        }

        .auth-storage-state.is-firebase .auth-storage-dot {
            background: var(--success);
        }

        .auth-switch {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid var(--line-soft);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }

        .auth-switch span {
            color: var(--muted);
            font-size: 0.74rem;
            line-height: 1.5;
        }

        #view-auth .field input {
            border-radius: 12px;
        }

        #view-auth .btn-main {
            border-radius: 12px;
        }

        #view-auth .auth-link {
            padding: 0;
            border-radius: 10px;
        }

        #view-auth .auth-link:hover,
        #view-auth .auth-link:focus-visible {
            color: var(--accent);
            text-decoration: underline;
        }

        @media (max-width: 1180px) {
            .auth-shell { grid-template-columns: 1fr; }
            .auth-visual { min-height: 440px; }
            .auth-signature { display: none; }
            .auth-copyright { left: 50%; text-align: center; }
        }

        @media (max-width: 768px) {
            .auth-card { background: linear-gradient(180deg, rgba(0, 51, 73, 0.98) 0%, rgba(104, 152, 173, 0.92) 34%, rgba(255, 255, 255, 1) 34%); }
            .auth-panel { margin: 0 12px 12px; width: auto; }
            .auth-stage { min-height: auto; }
            .auth-visual { padding: 28px 20px 30px; min-height: 360px; }
            .auth-copy-kicker { font-size: 0.68rem; margin-bottom: 10px; letter-spacing: 0.24em; }
            .auth-copy h2 { gap: 10px; font-size: clamp(5.2rem, 20vw, 7.4rem); }
            .auth-copy-tagline { margin-top: 16px; font-size: clamp(1.9rem, 8.4vw, 2.9rem); }
            .auth-pane { padding: 18px 14px 48px; }
            .auth-box { padding: 18px 16px; border-radius: 0; }
            .auth-switch { flex-direction: column; align-items: flex-start; }
            .auth-signature { right: 20px; bottom: 24px; }
            .auth-copyright {
                left: 50%;
                bottom: 32px;
                transform: translateX(-50%);
                width: max-content;
                max-width: calc(100% - 28px);
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .auth-topline { align-items: center; }
        }
