/* Auth pages custom styles */

body {
    background-color: var(--starterkit-bg);
    color: var(--starterkit-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-header {
    height: 76px;
    border-bottom: 1px solid var(--starterkit-line);
    background-color: var(--starterkit-bg);
}

.auth-footer {
    background-color: var(--starterkit-navy);
    color: var(--starterkit-on-accent);
    min-height: 130px;
}

/*
 * 푸터 메뉴·상태 점 (partials/footer_nav.php).
 * 이 레이아웃은 pub.css 를 싣지 않으므로 같은 클래스의 모양을 여기에 맞춰 둔다.
 * 규칙이 pub.css 와 어긋나면 두 화면의 푸터가 다시 달라진다.
 */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* 그룹 사이(2.25rem)를 그룹 안(1.25rem)보다 넓게 벌려 두 묶음으로 읽히게 한다. */
    gap: 0.75rem 2.25rem;
}

.footer-nav-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

/* 구분선은 두 그룹이 확실히 한 줄에 나란히 설 때만 둔다. */
@media (min-width: 992px) {
    .footer-nav-legal {
        padding-left: 2.25rem;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
    }
}

.footer-nav a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: var(--starterkit-on-accent);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.status-ok {
    background-color: var(--starterkit-green);
}

.status-dot.status-warn {
    background-color: var(--starterkit-orange);
}

.brand-panel {
    background: linear-gradient(135deg, var(--starterkit-navy) 0%, #1a2747 100%);
    color: var(--starterkit-on-accent);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

/*
 * 분할 화면(브랜드 패널 + 폼 패널)이 뷰포트를 세로로 채우도록.
 * 내용이 짧은 페이지(로그인 등)는 패널이 중간에 끊기고 푸터까지 빈 띠가
 * 생겼다. main → container-fluid → row 로 이어지는 flex 체인으로 늘린다.
 * row 의 컬럼(두 패널)은 align-items 기본값(stretch) 덕에 같은 높이가 된다.
 */
.auth-split {
    display: flex;
    flex-direction: column;
}

.auth-split > .container-fluid {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.auth-split > .container-fluid > .row {
    flex: 1 0 auto;
}

.brand-panel::before,
.brand-panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 98, 255, 0.18);
    filter: blur(60px);
}

.brand-panel::before {
    width: 360px;
    height: 360px;
    top: -80px;
    right: -80px;
}

.brand-panel::after {
    width: 280px;
    height: 280px;
    bottom: 40px;
    left: -60px;
}

.form-panel {
    background-color: var(--starterkit-surface-2);
    min-height: 600px;
}

.auth-card {
    max-width: 460px;
    width: 100%;
}

/*
 * 입력창과 앞뒤 꼬리는 부트스트랩 기본색이 아니라 토큰을 따른다.
 * 부트스트랩 다크 입력색(#212529)은 우리 바닥 토큰과 미묘하게 어긋나고,
 * 꼬리에 bg-white 를 박아 두면 다크에서 흰 덩어리로 남는다.
 */
.form-control,
.input-group-text {
    background-color: var(--starterkit-surface);
    color: var(--starterkit-ink);
    border-color: var(--starterkit-line);
}

.form-control::placeholder {
    color: var(--starterkit-muted);
    opacity: 1;
}

.form-control:focus {
    background-color: var(--starterkit-surface);
    color: var(--starterkit-ink);
    border-color: var(--starterkit-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 98, 255, 0.15);
}

.btn-primary {
    background-color: var(--starterkit-blue);
    border-color: var(--starterkit-blue);
}

.btn-primary:hover {
    background-color: var(--starterkit-blue-strong);
    border-color: var(--starterkit-blue-strong);
}

.text-muted-custom {
    color: var(--starterkit-muted);
}

/* 면 위에 얹는 글자이므로 배경용 -blue 가 아니라 글자용 -blue-text 를 쓴다(다크 대비). */
.link-primary {
    color: var(--starterkit-blue-text);
}

.notice-box {
    background-color: var(--starterkit-soft-2);
    border-radius: 0.5rem;
}

.step-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

/*
 * 브랜드 패널은 라이트·다크 모두 항상 어두운 면이다. surface·navy 토큰을 쓰면
 * 다크에서 배지 바탕과 글자가 둘 다 어두워져 읽히지 않으므로, 배지는 항상
 * 흰 바탕(on-accent)에 어두운 글자로 고정한다.
 */
.step-badge.active {
    background-color: var(--starterkit-on-accent);
    color: #171717;
}

.step-badge.inactive {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--starterkit-on-accent);
}

.progress-track {
    height: 5px;
    background-color: var(--starterkit-line);
    border-radius: 3px;
    overflow: hidden;
}

.progress-track .progress-active {
    width: 33%;
    height: 100%;
    background-color: var(--starterkit-blue);
}

@media (max-width: 767.98px) {
    .brand-panel {
        min-height: 240px;
        padding: 2rem !important;
    }

    .form-panel {
        min-height: auto;
        padding: 2rem 1rem !important;
    }

    .auth-card {
        max-width: 100%;
    }
}

/* 회원가입 약관 모달 본문.
   auth 레이아웃은 pub.css 를 싣지 않으므로 .policy-body 서식을 여기에 맞춰 둔다. */
.policy-modal-body {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--starterkit-ink);
    max-height: 60vh;
}

.policy-modal-body h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.policy-modal-body h2:first-child,
.policy-modal-body h3:first-child {
    margin-top: 0;
}

.policy-modal-body h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
}

.policy-modal-body p {
    margin-bottom: 0.875rem;
}

.policy-modal-body ul,
.policy-modal-body ol {
    margin-bottom: 0.875rem;
    padding-left: 1.25rem;
}

.policy-modal-body table {
    width: 100%;
    margin-bottom: 0.875rem;
    font-size: 0.8125rem;
    border-collapse: collapse;
}

.policy-modal-body th,
.policy-modal-body td {
    border: 1px solid var(--starterkit-line);
    padding: 0.375rem 0.5rem;
}
