/* 로그인 / 회원가입 신청 화면 (member/): 첫 화면(index.php)과 같은 밝은 톤 */
:root {
    --ink: #0f1b33;
    --muted: #7585a6;
    --line: #e1e8f5;
    --line-strong: #cfd9ee;
    --accent: #2459d9;
    --accent-dark: #1b47b3;
    --accent-soft: #eaf0ff;
    --danger: #d83a3a;
    --danger-soft: #fdeeee;
    --ok: #12805c;
    --ok-soft: #e6f6ef;
    --warn-soft: #fff3e0;
    --warn-ink: #b45309;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    color: var(--ink);
    background: radial-gradient(1100px 620px at 50% 20%, #f3f7ff 0%, #ffffff 62%) fixed;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.au-wrap { display: flex; flex-direction: column; align-items: center; padding: 44px 20px 64px; }

/* 로고 */
.au-logo { display: block; margin-bottom: 28px; }
.au-logo img { display: block; max-width: min(260px, 70vw); max-height: 72px; width: auto; height: auto; }
.au-logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.au-logo-text:hover { text-decoration: none; }

/* 카드 */
.au-card {
    width: 100%; max-width: 440px; padding: 34px 32px 28px;
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15,27,51,.04), 0 18px 48px rgba(36,89,217,.08);
}
.au-card.is-wide { max-width: 640px; }
.au-title { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.au-desc { margin: 0 0 24px; font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* 안내 / 오류 상자 */
.au-notice { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.55; background: var(--accent-soft); color: #214aa8; }
.au-notice.is-error { background: var(--danger-soft); color: #a02525; }
.au-notice.is-ok { background: var(--ok-soft); color: var(--ok); }
.au-notice.is-warn { background: var(--warn-soft); color: var(--warn-ink); }
.au-notice ul { margin: 6px 0 0; padding-left: 18px; }

/* 입력 */
.au-form { display: grid; gap: 16px; }
.au-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.au-field { min-width: 0; }
.au-field.is-full { grid-column: 1 / -1; }
.au-label { display: block; margin: 0 0 7px; font-size: .82rem; font-weight: 700; color: #3b4a6b; }
.au-label .req { color: var(--danger); margin-left: 2px; }
.au-label .au-opt { margin-left: 2px; font-weight: 500; color: #98a5c0; }
.au-input, .au-select {
    width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: .98rem; color: var(--ink);
    background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.au-select { appearance: none; padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 5.2 7 8.7l3.5-3.5' fill='none' stroke='%237585a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center;
}
.au-input::placeholder { color: #a9b4cc; }
.au-input:focus, .au-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36,89,217,.12); }
.au-select:disabled { background-color: #f6f8fc; color: #98a5c0; cursor: not-allowed; }
.au-field.has-error .au-input, .au-field.has-error .au-select { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(216,58,58,.08); }
.au-error { margin: 6px 2px 0; font-size: .8rem; color: var(--danger); }
.au-hint { margin: 6px 2px 0; font-size: .78rem; color: var(--muted); }

/* 비밀번호 보기 */
.au-pw { position: relative; }
.au-pw .au-input { padding-right: 64px; }
.au-pw-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px;
    font: inherit; font-size: .78rem; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.au-pw-toggle:hover { color: var(--accent); background: var(--accent-soft); }

/* 비밀번호 강도 막대 */
.au-meter { display: flex; gap: 4px; margin-top: 8px; }
.au-meter i { flex: 1; height: 4px; border-radius: 2px; background: #e6ecf7; }
.au-meter[data-level="1"] i:nth-child(1) { background: #e25b5b; }
.au-meter[data-level="2"] i:nth-child(-n+2) { background: #f0a23b; }
.au-meter[data-level="3"] i:nth-child(-n+3) { background: #4caf7a; }
.au-meter[data-level="4"] i { background: #12805c; }

/* 동의 */
.au-agree { border: 1px solid var(--line); border-radius: 14px; background: #f9fbff; }
.au-agree-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.au-agree-row input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.au-agree details { border-top: 1px solid var(--line); }
.au-agree summary { padding: 11px 16px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.au-agree pre { margin: 0; padding: 0 16px 14px; font: inherit; font-size: .8rem; line-height: 1.65; color: #4f5f82; white-space: pre-wrap; word-break: keep-all; }

/* 버튼 */
.au-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 20px;
    font: inherit; font-size: 1.02rem; font-weight: 800; color: #fff; background: var(--accent);
    border: 0; border-radius: 14px; cursor: pointer; text-decoration: none;
    box-shadow: 0 10px 24px rgba(36,89,217,.22); transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.au-btn:hover { background: var(--accent-dark); transform: translateY(-1px); text-decoration: none; }
.au-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.au-btn.is-ghost { color: var(--accent); background: #fff; border: 1px solid var(--line-strong); box-shadow: none; }
.au-btn.is-ghost:hover { background: var(--accent-soft); }

.au-check { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #4f5f82; cursor: pointer; }
.au-check input { width: 17px; height: 17px; accent-color: var(--accent); }

/* 하단 링크 */
.au-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 22px; font-size: .86rem; color: var(--muted); }
.au-links a { color: #4f5f82; font-weight: 600; }
.au-links a:hover { color: var(--accent); }
.au-divider { height: 1px; margin: 22px 0 0; background: var(--line); border: 0; }

/* 완료 / 상태 */
.au-result { text-align: center; padding: 8px 0 4px; }
.au-result-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--ok-soft); color: var(--ok); }
.au-result-icon.is-warn { background: var(--warn-soft); color: var(--warn-ink); }
.au-result-icon.is-bad { background: var(--danger-soft); color: var(--danger); }
.au-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 999px; font-size: .84rem; font-weight: 800; }
.au-badge.is-pending { background: var(--warn-soft); color: var(--warn-ink); }
.au-badge.is-approved { background: var(--ok-soft); color: var(--ok); }
.au-badge.is-rejected { background: var(--danger-soft); color: #a02525; }
.au-kv { margin: 18px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left; }
.au-kv li { display: flex; gap: 14px; padding: 12px 16px; font-size: .9rem; }
.au-kv li + li { border-top: 1px solid var(--line); }
.au-kv b { flex: 0 0 76px; color: var(--muted); font-weight: 700; }
.au-actions { display: grid; gap: 10px; margin-top: 22px; }

/* 자동 가입 방지용 숨김 칸 (사람에게는 보이지 않는다) */
.au-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
    .au-wrap { padding: 30px 14px 48px; }
    .au-card { padding: 26px 20px 22px; border-radius: 18px; }
    .au-grid { grid-template-columns: 1fr; }
}
