/* shared/style.css - 성도용 로그인·가입·비밀번호 화면
   신학원 로그인 화면(pastor/css/login.css)과 같은 카드 디자인을 쓴다.
   색상 토큰은 theme.css 에서 온다 (이 파일보다 먼저 불러올 것). */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--brand-gradient-soft);
}

a { color: var(--brand-600); }

[hidden] { display: none !important; }

/* ── 언어 전환 (오른쪽 위) ───────────────────────── */
.lang-switcher-standalone {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    gap: 2px;
    padding: 3px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(11, 61, 115, 0.1);
}

.lang-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
}

.lang-btn:hover { color: var(--brand-700); }

.lang-btn.active {
    background: var(--brand-gradient);
    color: #fff;
}

/* ── 화면 가운데 카드 ───────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px -12px rgba(11, 92, 173, 0.28);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    position: relative;
    overflow: hidden;
    background: var(--brand-gradient);
    color: #fff;
    text-align: center;
    padding: 40px 32px 34px;
}

.auth-header::before {
    content: '';
    position: absolute;
    inset: -50% -50% auto auto;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

/* 로고 - 투명 PNG 그대로 (신학원 로그인과 동일) */
.auth-logo {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 10px rgba(10, 61, 115, 0.3));
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-header h1 {
    position: relative;
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.auth-header p {
    position: relative;
    margin: 0;
    font-family: 'Gowun Batang', 'Nanum Myeongjo', serif;
    font-size: 15px;
    font-weight: 700;
    opacity: 0.95;
}

.auth-body {
    padding: 32px 36px 30px;
}

.auth-body .lead {
    color: var(--ink-muted);
    font-size: 14px;
    margin: 0 0 20px;
}

/* ── 폼 ─────────────────────────────────────────── */
form { display: grid; gap: 16px; }

label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

label small { font-weight: 400; color: var(--ink-muted); }

input, textarea, select {
    width: 100%;
    font: inherit;
    font-weight: 400;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand-600);
    box-shadow: var(--brand-ring);
}

.otp-input {
    font-size: 1.6rem;
    letter-spacing: 0.4em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ── 버튼 ───────────────────────────────────────── */
.btn {
    font: inherit;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:disabled { opacity: 0.65; cursor: wait; }

.btn.primary {
    background: var(--brand-gradient);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 15px 18px;
}

.btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--brand-shadow);
}

.btn.link {
    background: none;
    border: none;
    padding: 6px 0;
    color: var(--brand-600);
    font-size: 14px;
}

.btn.link:hover { text-decoration: underline; }
.btn.block { width: 100%; }

.links {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
    color: var(--ink-muted);
}

.links a {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: none;
}

.links a:hover { text-decoration: underline; }

/* ── 안내 메시지 ─────────────────────────────────── */
.msg {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 18px;
    white-space: pre-line;
}

.msg-info { background: var(--brand-100); color: var(--brand-700); }
.msg-error { background: #fdecec; color: #b42318; }
.msg-success { background: #e8f7ef; color: #1e7a46; }

@media (max-width: 600px) {
    .auth-header { padding: 32px 22px 28px; }
    .auth-body { padding: 26px 22px 24px; }
}
