.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(29, 111, 120, 0.16), transparent 24%),
        radial-gradient(circle at left bottom, rgba(197, 137, 61, 0.12), transparent 28%),
        linear-gradient(155deg, #edf2ef 0%, #e3ebe8 46%, #d6e1dd 100%);
    font-family: var(--shell-font, "Manrope", "Noto Sans KR", sans-serif);
    color: #314449;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(1040px, 100%);
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(25, 48, 84, 0.14);
}

.auth-aside {
    min-height: 100%;
    padding: 3rem;
    color: #fff;
    background: linear-gradient(165deg, #173038 0%, #1d5963 54%, #3a716b 100%);
}

.auth-panel {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.97);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .52rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: .84rem;
    letter-spacing: .03em;
}

.auth-lead {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.auth-feature-list {
    display: grid;
    gap: .9rem;
}

.auth-feature-card {
    border-radius: 20px;
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-feature-card .small,
.auth-muted-light {
    color: rgba(255, 255, 255, 0.72);
}

.auth-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.auth-panel-title {
    margin-bottom: .35rem;
    color: #182126;
}

.auth-panel-copy {
    margin: 0;
    color: #6b7a78;
}

.auth-icon-mark {
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #1d6f78;
    background: linear-gradient(180deg, rgba(223, 242, 240, 0.95), rgba(205, 233, 229, 0.92));
}

.auth-form-card,
.guide-card,
.step-card {
    border-radius: 20px;
    border: 1px solid rgba(39, 62, 88, 0.1);
    background: rgba(246, 249, 248, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.auth-form-card {
    padding: 1.2rem;
}

.guide-card,
.step-card {
    padding: 1.15rem 1.2rem;
}

.step-card.active {
    border-color: rgba(29, 82, 126, 0.24);
    background: linear-gradient(180deg, rgba(231, 244, 242, 0.98), rgba(248, 251, 250, 0.98));
    box-shadow: 0 16px 32px rgba(30, 83, 89, 0.08);
}

.auth-input,
.auth-input-group .input-group-text {
    min-height: 3rem;
    border-radius: .95rem;
}

.auth-input:focus {
    border-color: #4d8a82;
    box-shadow: 0 0 0 .2rem rgba(29, 111, 120, 0.12);
}

.auth-button {
    min-height: 3.1rem;
    border: 0;
    border-radius: .95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #173038 0%, #1d6f78 100%);
}

.auth-button:hover,
.auth-button:focus {
    background: linear-gradient(135deg, #163039 0%, #1a646b 100%);
}

.auth-button-outline {
    border-radius: 999px;
}

.status-alert {
    display: none;
    border-radius: 1rem;
}

.inline-feedback {
    display: none;
    margin-top: .45rem;
    font-size: .85rem;
}

.inline-feedback.match {
    display: block;
    color: #2d7a57;
}

.inline-feedback.mismatch {
    display: block;
    color: #c14444;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #d9e8f4;
    color: #1d527e;
    font-weight: 700;
}

.step-card.active .step-badge {
    background: #1d527e;
    color: #fff;
}

.guide-list {
    padding-left: 1rem;
    margin-bottom: 0;
}

.guide-list li + li {
    margin-top: .45rem;
}

.verification-code {
    text-align: center;
    letter-spacing: .35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.6rem;
    margin-top: 1.8rem;
    border-top: 1px solid rgba(39, 62, 88, 0.08);
}

.auth-helper-grid {
    display: grid;
    gap: .85rem;
}

@media (max-width: 991.98px) {
    .auth-aside,
    .auth-panel {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .auth-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Auth pages use the same ERP 301 design tokens as the internal dashboard. */
.auth-page {
    background:
        linear-gradient(90deg, rgba(6, 39, 70, 0.96) 0, rgba(6, 39, 70, 0.96) 34%, transparent 34%),
        var(--ds-color-bg, #eef3f7);
    color: var(--ds-color-text, #222831);
}

.auth-shell {
    padding: 40px 24px;
}

.auth-card {
    width: min(1120px, 100%);
    border: 1px solid var(--ds-color-border, #d9e0e8);
    border-radius: var(--ds-radius-card, 6px);
    box-shadow: var(--ds-shadow-raised, 0 8px 24px rgba(20, 34, 48, 0.13));
}

.auth-aside {
    background: var(--ds-color-sidebar, #062746);
    padding: 48px 40px;
}

.auth-panel {
    padding: 48px;
    background: #fff;
}

.auth-badge {
    border-radius: var(--ds-radius-control, 5px);
    background: rgba(35, 139, 230, 0.16);
    color: #dbeafe;
}

.auth-feature-card {
    border-radius: var(--ds-radius-card, 6px);
    background: rgba(255, 255, 255, 0.08);
}

.auth-panel-title {
    color: var(--ds-color-text, #222831);
    font-weight: 800;
}

.auth-panel-copy {
    color: var(--ds-color-text-muted, #6f7b88);
}

.auth-icon-mark {
    border-radius: var(--ds-radius-card, 6px);
    color: var(--ds-color-primary, #238be6);
    background: var(--ds-color-primary-soft, #e6f4ff);
}

.auth-form-card,
.guide-card,
.step-card {
    border-radius: var(--ds-radius-card, 6px);
    border-color: var(--ds-color-border, #d9e0e8);
    background: var(--ds-color-surface-muted, #f8fafc);
    box-shadow: none;
}

.auth-input,
.auth-input-group .input-group-text {
    min-height: 44px;
    border-radius: var(--ds-radius-control, 5px);
}

.auth-input:focus {
    border-color: var(--ds-color-primary, #238be6);
    box-shadow: 0 0 0 .2rem rgba(35, 139, 230, 0.12);
}

.auth-button {
    min-height: 44px;
    border-radius: var(--ds-radius-control, 5px);
    background: var(--ds-color-primary-strong, #0b4b86);
}

.auth-button:hover,
.auth-button:focus {
    background: #073e72;
}

.auth-button-outline {
    border-radius: var(--ds-radius-control, 5px);
}

.auth-footer {
    border-top-color: var(--ds-color-border, #d9e0e8);
}

@media (max-width: 991.98px) {
    .auth-page {
        background: var(--ds-color-bg, #eef3f7);
    }

    .auth-aside,
    .auth-panel {
        padding: 32px;
    }
}
