/*
 * 인증 > 메인 진입 (/auth/main → auth/main.jsp) 디자인 시스템 오버라이드
 * 링크 순서: common.css → 페이지 인라인 <style> → 이 파일. 모든 규칙은 body.auth-page.auth-main 아래.
 * 근무자/파트너 로그인 링크, 약관 링크의 href·class·aria 속성은 건드리지 않는다.
 */

/* ---------- 페이지 레이아웃 ---------- */
body.auth-page.auth-main {
    min-height: 100vh;
    background: var(--tp-canvas);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px 20px 20px;
    box-sizing: border-box;
}

body.auth-page.auth-main .main-container {
    flex: 1;
    width: 100%;
    padding: 0;
}

body.auth-page.auth-main .bg-decoration-1,
body.auth-page.auth-main .bg-decoration-2 {
    display: none;
}

body.auth-page.auth-main .content-wrapper {
    max-width: 360px;
}

/* ---------- 브랜드 ---------- */
body.auth-page.auth-main .brand-section {
    margin-bottom: 0;
}

body.auth-page.auth-main .brand-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--tp-color-accent);
    background: none;
    -webkit-text-fill-color: currentColor;
}

body.auth-page.auth-main .brand-subtitle {
    margin: 0 0 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-text-muted);
    text-transform: uppercase;
}

/* ---------- 카드 ---------- */
body.auth-page.auth-main .card {
    width: 100%;
    max-width: 360px;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border-default);
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-md);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: auto 0;
    overflow: visible;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.auth-page.auth-main .card::before {
    content: none;
}

/* ---------- 앱 아이콘 ---------- */
body.auth-page.auth-main .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

body.auth-page.auth-main .card-icon::before {
    content: none;
}

body.auth-page.auth-main .card-icon-inner {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body.auth-page.auth-main .card-icon-inner i,
body.auth-page.auth-main .card-icon-inner svg {
    width: 40px;
    height: 40px;
}

/* ---------- 로그인 버튼 ---------- */
body.auth-page.auth-main .button-section {
    gap: 0;
}

body.auth-page.auth-main .divider {
    margin: 12px 0;
    background: var(--tp-border-default);
}

body.auth-page.auth-main .login-button::before,
body.auth-page.auth-main .login-button::after {
    content: none;
}

body.auth-page.auth-main .login-button-text,
body.auth-page.auth-main .login-button.company .login-button-text {
    font-size: 16px;
    font-weight: 700;
}

body.auth-page.auth-main .login-button i,
body.auth-page.auth-main .login-button svg {
    width: 20px;
    height: 20px;
}

body.auth-page.auth-main .login-button.worker {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--tp-color-accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--tp-radius-md);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

body.auth-page.auth-main .login-button.company {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border-default);
    color: var(--tp-text-strong);
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--tp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: all 0.2s ease-in-out;
}

/* :active 는 :hover 와 명시도가 같으므로 hover 뒤에 둬야 누르는 동안 이긴다 */
body.auth-page.auth-main .login-button.worker:hover {
    background: var(--tp-color-accent);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

body.auth-page.auth-main .login-button.worker:active {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    transform: translateY(1px);
}

body.auth-page.auth-main .login-button.company:hover {
    border-color: var(--tp-color-accent);
    background: var(--tp-color-accent-subtle);
    box-shadow: none;
    transform: none;
}

body.auth-page.auth-main .login-button.company:active {
    transform: translateY(1px);
}

body.auth-page.auth-main .login-button:hover i,
body.auth-page.auth-main .login-button:hover svg {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    body.auth-page.auth-main .login-button.worker,
    body.auth-page.auth-main .login-button.company {
        transition: none;
    }
}

body.auth-page.auth-main .login-button:focus-visible {
    outline: none;
    box-shadow: var(--tp-focus-ring);
}

body.auth-page.auth-main .login-button.company i,
body.auth-page.auth-main .login-button.company svg {
    stroke: var(--tp-color-accent);
}

/* 텍스트를 버튼 가운데에 두기 위해 배지는 오른쪽에 고정한다 (버튼이 position: relative) */
body.auth-page.auth-main .company-badge {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: var(--tp-canvas);
    color: var(--tp-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--tp-radius-full);
    border: 1px solid var(--tp-border-default);
    margin-left: auto;
}

/* ---------- 푸터 ---------- */
body.auth-page.auth-main .auth-footer {
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    color: var(--tp-text-muted);
    line-height: 1.6;
    margin-top: 24px;
    padding: 0 0 env(safe-area-inset-bottom);
}

body.auth-page.auth-main .auth-footer-detail {
    margin-top: 0;
    line-height: 1.6;
}

body.auth-page.auth-main .auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    font-weight: 600;
    color: var(--tp-text-strong);
}

body.auth-page.auth-main .auth-footer-links a {
    color: var(--tp-text-strong);
}

body.auth-page.auth-main .auth-footer-links a:hover {
    color: var(--tp-color-accent);
}

body.auth-page.auth-main .auth-footer-links a:focus-visible {
    outline: none;
    border-radius: var(--tp-radius-md);
    box-shadow: var(--tp-focus-ring);
}
