/* ==============================================
   AUTH.CSS — 로그인 · 회원가입 · 인증 폼
   ============================================== */

/* ── 로그인 페이지 레이아웃 ── */
.login-page { background: #fff; min-height: 100vh; display: flex; }
.login-wrap { display: flex; width: 100%; min-height: 100vh; }

/* 로그인 좌측 로고 영역 */
.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}
.login-logo h1 {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: Georgia, serif;
    color: #111;
    line-height: 1.1;
}
.login-logo p { font-size: 0.95rem; color: #888; font-style: italic; margin-top: 8px; }

/* 로그인 우측 폼 영역 */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
}

/* 로그인 카드 */
.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 4px 30px rgba(0,0,0,.12);
}

/* 로그인 입력 필드 */
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: #333; }
.login-field input {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    background: #f2f2f2;
    font-size: 0.95rem;
    outline: none;
    transition: background .15s;
}
.login-field input:focus { background: #e8e8e8; }

/* 로그인 버튼 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background .15s;
}
.login-btn:hover { background: #444; }

/* 아이디/비밀번호 찾기 링크 */
.login-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 0.83rem; }
.login-links a { color: #1a73e8; }

/* 구분선 (또는) */
.login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #aaa;
    font-size: 0.83rem;
}
.login-divider::before, .login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #ddd;
}
.login-divider::before { left: 0; }
.login-divider::after  { right: 0; }

/* 구글 로그인 버튼 */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 0.93rem;
    cursor: pointer;
    color: #333;
    transition: background .15s;
}
.google-btn:hover { background: #f5f5f5; color: #333; }
.google-btn img { width: 20px; height: 20px; }

/* 회원가입 유도 텍스트 */
.login-signup { text-align: center; margin-top: 20px; font-size: 0.88rem; color: #666; }
.login-signup a { color: #1a73e8; font-weight: 600; }

/* ── 회원가입 페이지 레이아웃 ── */
.signup-page {
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.signup-wrap { width: 100%; max-width: 520px; }

/* 회원가입 카드 */
.signup-card { background: #fff; border-radius: 20px; padding: 40px; box-shadow: 0 4px 30px rgba(0,0,0,.10); }

/* 회원가입 로고 */
.signup-logo { display: block; text-align: center; margin-bottom: 28px; color: #111; }
.signup-logo h1 { font-size: 2.4rem; font-weight: 800; font-family: Georgia, serif; line-height: 1.1; }
.signup-logo p { font-size: 0.85rem; color: #888; font-style: italic; margin-top: 4px; }

/* 회원가입 입력 필드 */
.signup-field { margin-bottom: 14px; }
.signup-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: #333; }
.signup-field input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #f2f2f2;
    font-size: 0.93rem;
    outline: none;
    transition: background .15s;
}
.signup-field input:focus { background: #e8e8e8; }

/* 인풋 + 버튼 가로 배치 (중복확인 등) */
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }
.field-btn {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.field-btn:hover { background: #f5f5f5; }

/* 회원가입 제출 버튼 */
.signup-btn {
    width: 100%;
    padding: 14px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background .15s;
}
.signup-btn:hover { background: #444; }
.signup-btn:disabled { background: #aaa; cursor: not-allowed; }

/* ── 공통 인증 컨테이너 (find-id, find-pw, change-pw 등) ── */
.auth-page {
    background: #fff; /* 흰 배경 */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-container {
    background: #fff;
    border-radius: 14px;
    padding: 40px 36px;
    width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
}
.auth-container-lg { width: 500px; }

/* 인증 페이지 로고 */
.auth-logo {
    display: block;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: Georgia, serif;
    color: #111;
    margin-bottom: 4px;
}
/* 로고 하단 슬로건 */
.auth-tagline {
    text-align: center;
    font-size: 0.82rem;
    color: #999;
    font-style: italic;
    margin-bottom: 24px;
}

/* 인증 페이지 제목 */
.auth-container h2 { text-align: center; margin-bottom: 24px; font-size: 1.3rem; }

/* ── 폼 공통 스타일 ── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text-sub); }
.form-group input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border .15s;
}
.form-group input:focus { border-color: var(--primary); }

/* 인풋 + 버튼 가로 배치 */
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }

/* 필드 에러/성공 메시지 */
.field-error { font-size: 0.8rem; color: var(--danger); }
.field-msg { font-size: 0.82rem; margin-top: 2px; }
.field-msg.ok  { color: var(--success); }
.field-msg.err { color: var(--danger); }

/* 로그인으로 돌아가기 등 하단 링크 */
.auth-links { margin-top: 18px; text-align: center; font-size: 0.85rem; color: var(--text-sub); }
.auth-links a { color: var(--primary); }

/* ── Google 로그인 버튼 (auth-form 버전) ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background .15s;
    color: var(--text);
}
.btn-google:hover { background: var(--bg); }
.btn-google img { width: 20px; height: 20px; }