/* css/auth.css */

/* 로그인/회원가입 전용 기본 레이아웃 */
body.auth-body {
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
    display: inline-block;
}

/* 섹션 구분선 */
.section-title {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #334155;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

/* 입력창 공통 스타일 */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
    box-sizing: border-box;
    height: 46px; /* 높이 통일 */
}

/* 입력창 + 버튼 세트 (한 줄 정렬) */
.input-with-btn {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.input-with-btn input {
    flex: 1;
    margin-bottom: 0; /* 버튼과 높이 맞추기 위해 */
}

/* 작은 버튼 (인증번호 받기 등) */
.small-btn {
    white-space: nowrap;
    padding: 0 15px;
    background-color: #334155;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    height: 46px; /* 입력창과 높이 맞춤 */
}
.small-btn:hover { background-color: #1e293b; }

/* 인증 확인 버튼 스타일 수정 */
.verify-confirm-btn {
    white-space: nowrap;
    padding: 0 20px;
    background-color: #0ea5e9; /* 밝은 파랑 */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    height: 46px;
    font-weight: bold;
}
.verify-confirm-btn:hover { background-color: #0284c7; }

/* 인증 박스 스타일 */
.verify-box {
    background-color: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    margin-bottom: 15px;
}
.verify-box p { font-size: 0.85rem; margin-bottom: 8px; color: #334155; }

/* 타이머 스타일 */
#timer, #phoneTimer {
    color: #e11d48;
    font-weight: bold;
    width: 50px;
    text-align: center;
}

/* 라디오 버튼 그룹 */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}
.radio-group label {
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-form input[type="radio"] {
    width: auto;
    margin-bottom: 0;
    height: auto;
}

/* 유틸리티 */
.hidden { display: none !important; }

/* 비밀번호 메시지 */
.msg-box { font-size: 0.85rem; margin-top: -10px; margin-bottom: 15px; height: 18px; }
.text-success { color: #16a34a; font-weight: bold; }
.text-error { color: #dc2626; font-weight: bold; }

/* 메인 버튼 스타일 */
.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.auth-btn:hover { background-color: #1d4ed8; }
.auth-btn:disabled { cursor: not-allowed; opacity: 0.7; background-color: #ccc; }

.auth-links { margin-top: 15px; font-size: 0.9rem; text-align: center; }
.auth-links a { color: #64748b; text-decoration: underline; }