/* 로그인·비밀번호 화면(U-AU). 색은 테마 변수(--p 등)를 쓴다. */
.auth-body { margin: 0; background: #fff; color: #1A2130; letter-spacing: -0.01em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
.auth-wrap { display: flex; flex-wrap: wrap; min-height: 100vh; }
/* 왼쪽: 2차 시안처럼 짙은 남색 바탕 + 무늬 그림 */
.auth-visual {
    flex: 1 1 520px; min-height: 420px; position: relative; overflow: hidden; color: #fff; padding: 48px 56px; box-sizing: border-box;
    background: #0E1A30;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth-visual-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; pointer-events: none; }
.auth-visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* 관리자가 올린 사진은 남색으로 덮어 글자가 잘 보이게 */
.auth-visual:has(.auth-visual-img)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(14,26,48,.92) 0%, rgba(14,26,48,.7) 45%, rgba(14,26,48,.88) 100%); }
.auth-visual > a, .auth-visual > div, .auth-visual > p { position: relative; z-index: 1; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: #fff; text-decoration: none; }
.auth-brand-mark { width: 40px; height: 40px; border-radius: 4px; background: #fff; color: #0E1A30; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.auth-brand-text strong { font-size: 17px; font-weight: 800; }
.auth-brand-text span { font-size: 13px; color: #B9C4D6; }
.auth-visual-text { max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.auth-visual h2 { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; white-space: pre-line; }
.auth-visual-lead { margin: 0; font-size: 16px; color: #C3CCDB; }
.auth-visual-foot { margin: 0; font-size: 13px; color: #9AA7BC; }
/* 오른쪽: 입력 폼 */
.auth-panel { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 72px 24px 48px; box-sizing: border-box; background: #fff; }
.auth-box { width: 100%; max-width: 380px; }
.auth-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.auth-head h1, .auth-head .auth-desc { margin: 0 !important; }
.auth-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--p); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form .auth-field { margin: 0; }
.auth-form .auth-btn { margin-top: 4px; }
.auth-forgot { align-self: flex-end; font-size: 14px; color: var(--p); }
.auth-forgot:hover { color: var(--pd); }
/* 칸 안 아이콘(2차 시안) */
.auth-ic { position: relative; display: flex; align-items: center; }
.auth-ic > svg { position: absolute; left: 15px; color: #5A6475; pointer-events: none; }
.auth-field .auth-ic input[type] { padding-left: 44px; }
.auth-box h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 8px; color: #111827; line-height: 1.3; }
.auth-desc { color: #5A6475; font-size: 15px; margin: 0 0 28px; line-height: 1.7; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #1f2937; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.auth-label-row label { margin: 0; }
.auth-label-row a { font-size: 14px; color: #4b5563; text-decoration: none; font-weight: 500; }
.auth-label-row a:hover { color: var(--p); text-decoration: underline; }
.auth-field input[type=text], .auth-field input[type=email], .auth-field input[type=password] {
    width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 14px; font-size: 16px; font-family: inherit;
    border: 1px solid #CBD3DF; border-radius: 4px; background: #fff; color: #111827; transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder { color: #9ca3af; }
.auth-field input:hover { border-color: #9ca3af; }
.auth-field input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px var(--ps); }
.auth-hint { font-size: 13px; color: #6b7280; margin-top: 6px; }
.auth-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 20px; font-size: 14px; color: #374151; line-height: 1.5; }
.auth-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--p); }
.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
    width: 100%; min-height: 54px; border: 0; border-radius: 4px; background: var(--p); color: #fff;
    font-size: 16px; font-weight: 700; font-family: inherit; letter-spacing: -0.01em; cursor: pointer; text-decoration: none;
    box-shadow: none; transition: background .15s, transform .05s;
}
.auth-btn:hover { background: var(--pd); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-btn-ghost { background: #fff; color: #1A2130; border: 1px solid #CBD3DF; box-shadow: none; }
.auth-btn-ghost:hover { border-color: var(--p); color: var(--p); }
.auth-btn-ghost:hover { background: var(--ps); }
.auth-btn svg { flex: 0 0 auto; }
/* 로그인 아래: 회원이 아닌 사람에게 가입 안내 */
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 28px 0 16px; color: #6b7280; font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: #e5e7eb; }
.auth-help { margin-top: 26px; padding: 14px 16px; border-radius: 4px; background: #F3F5F8; color: #3B4556; font-size: 14px; line-height: 1.7; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 18px; font-size: 15px; }
.auth-links a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: #374151; text-decoration: none; font-weight: 500; }
.auth-links a:hover { color: var(--p); }
.auth-links a.strong { color: var(--p); font-weight: 700; }
.auth-error { background: #fef2f2; color: #991b1b; border-radius: 4px; padding: 12px 16px; margin-bottom: 18px; font-size: 15px; line-height: 1.6; }
.auth-error ul { margin: 0; padding-left: 18px; }
.auth-notice { background: var(--ps); color: #1f2937; border-radius: 4px; padding: 14px 16px; margin-bottom: 18px; font-size: 15px; line-height: 1.6; }
.auth-privacy { border: 1px solid #e5e7eb; border-radius: 4px; padding: 14px 16px; font-size: 13px; color: #4b5563; line-height: 1.6; max-height: 160px; overflow-y: auto; margin-bottom: 8px; }
.auth-privacy table { width: 100%; border-collapse: collapse; }
.auth-privacy th, .auth-privacy td { text-align: left; padding: 4px 0; vertical-align: top; }
.auth-privacy th { width: 90px; color: #111827; }
.auth-otp input { letter-spacing: .5em; text-align: center; font-size: 22px; }
.inline-form { display: inline; }
.link-button { background: none; border: 0; padding: 0; color: #4b5563; cursor: pointer; font-size: 14px; text-decoration: underline; }

@media (max-width: 860px) {
    .auth-wrap { flex-direction: column; }
    .auth-visual { flex: 0 0 auto; min-height: 0; padding: 24px; gap: 20px; }
    .auth-visual h2 { font-size: 26px; }
    .auth-visual-foot { display: none; }
    .auth-visual-lead { font-size: 15px; }
    .auth-box h1 { font-size: 28px; }
    .auth-panel { padding: 32px 16px; align-items: flex-start; }
}

/* 가입 신청(U-AU-05·06) */
.auth-box.auth-box-wide { max-width: 560px; }
.join-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field input[type=tel], .auth-field input[type=file] { width: 100%; box-sizing: border-box; min-height: 54px; padding: 0 16px; font-size: 16px; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; color: #111827; }
.auth-field input[type=file] { padding: 14px 16px; font-size: 14px; }
.auth-field .opt { font-weight: 400; color: #9ca3af; font-size: 12px; margin-left: 4px; }
.join-agree { border: 1px solid #e5e7eb; border-radius: 4px; padding: 6px 16px; margin: 8px 0 20px; }
.join-agree .auth-check { margin: 10px 0; }
.join-agree .all { border-bottom: 1px solid #e5e7eb; padding-bottom: 10px; font-weight: 700; }
.join-agree details { font-size: 13px; color: #6b7280; margin: -4px 0 8px 26px; }
.join-agree summary { cursor: pointer; color: var(--p); }
.join-steps { list-style: none; padding: 0; margin: 0 0 24px; }
.join-steps li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f3f4f6; font-size: 15px; color: #374151; }
.join-steps .n { width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.join-steps .done .n { background: var(--p); color: #fff; }
@media (max-width: 640px) { .join-row { grid-template-columns: 1fr; } }

/* 진로추적 설문폼(U-CT-01) */
.auth-box.cs-box { max-width: 560px; }
.cs-types { border: 0; padding: 0; margin: 0 0 16px; }
.cs-types legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: #374151; padding: 0; }
.cs-types .cs-type { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 8px 0; padding: 10px 16px; border: 1px solid #d1d5db; border-radius: 4px; cursor: pointer; font-weight: 600; }
.cs-types .cs-type:has(input:checked) { border-color: var(--p); background: var(--ps); color: var(--pd); }
.cs-types .cs-type input { margin: 0; }
.cs-req { font-size: 12px; color: #b91c1c; font-weight: 600; margin-left: 4px; }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.auth-field select { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 4px; font: inherit; background: #fff; }
.cs-note { font-size: 13px; color: #6b7280; margin: 4px 0 16px; }
@media (max-width: 520px) { .cs-two { grid-template-columns: 1fr; } }

/* 가입 신청(U-AU-05): 단계별 묶음, 회원 구분 칩, 비밀번호 규칙 표시 */
.join-form .auth-field input[type=text], .join-form .auth-field input[type=email], .join-form .auth-field input[type=password], .join-form .auth-field input[type=tel] { min-height: 48px; font-size: 15px; }
.join-sec { border: 1px solid #e5e7eb; border-radius: 4px; padding: 18px 20px 4px; margin-bottom: 16px; background: #fff; }
.join-sec-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 700; color: #111827; }
.join-sec-title .n { width: 24px; height: 24px; border-radius: 50%; background: var(--p); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.join-kind { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.join-kind label { position: relative; cursor: pointer; margin: 0; }
.join-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.join-kind span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 14px; font-weight: 600; color: #374151; background: #fff; transition: background .15s, border-color .15s, color .15s; }
.join-kind span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cbd5e1; box-sizing: border-box; background: #fff; }
.join-kind label:hover span { border-color: var(--p); }
.join-kind input:checked + span { border-color: var(--p); background: var(--p); color: #fff; }
.join-kind input:checked + span::before { border-color: #fff; background: radial-gradient(circle, var(--p) 0 3px, #fff 3.5px); }
.join-kind input:focus-visible + span { box-shadow: 0 0 0 3px var(--ps); }
.pw-box { position: relative; }
.pw-box input { padding-right: 64px !important; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #6b7280; font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.pw-eye:hover { background: #f3f4f6; color: #111827; }
.pw-rules { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; }
.pw-rules li { font-size: 12px; padding: 3px 10px; border-radius: 4px; background: #f3f4f6; color: #6b7280; }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { background: #ecfdf5; color: #047857; }
.pw-rules li.ok::before { content: "✓ "; }
.pw-match:empty { display: none; }
.pw-match.ok { color: #047857; }
.pw-match.bad { color: #b91c1c; }
.join-form .join-agree { margin: 0 0 10px; border: 0; padding: 0; }

/* 관리자 로그인: 아이디로 로그인한다는 안내를 두드러지게(11-22) */
.auth-notice-id { border-left: 4px solid var(--p, #2550D6); background: #FFF7DB; }
.auth-notice-id strong { color: #111827; }
.auth-label-sub { color: #6B7280; font-weight: 500; font-size: 13px; }
.auth-brand .site-logo-mark { width: 40px; height: 40px; flex: none; display: block; }
.auth-brand .site-logo-mark .lm-bg { fill: #FFFFFF; }
.auth-brand .site-logo-mark .lm-t, .auth-brand .site-logo-mark .lm-l, .auth-brand .site-logo-mark .lm-r { fill: var(--p, #2550D6); }
.auth-brand .site-logo-mark .lm-l { fill-opacity: .74; }
.auth-brand .site-logo-mark .lm-r { fill-opacity: .52; }
.auth-brand-img { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }
