/* ========================Login CSS========================= */
/* 로그인 페이지 스타일 */

/* ========== 기본 설정 ========== */
/* body 기본 스타일 - base.css보다 우선순위 높게 설정 */
body {
    padding-top: 100px !important;
    background: #F0F9FF !important;
    background-color: #F0F9FF !important;
    min-height: 100vh;
}

/* ========== 인증 컨테이너 ========== */
/* 로그인/회원가입 전체 컨테이너 - 최대 너비 제한 및 가운데 정렬 */
.auth-container {
    max-width: 480px !important;
    margin: 60px auto !important;
    padding: 0 20px !important;
    width: 100%;
    box-sizing: border-box;
}

/* 인증 박스 - 카드 스타일 */
.auth-box {
    background: white !important;
    border-radius: 20px !important;
    padding: 50px 40px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

/* ========== 로고 및 제목 ========== */
/* 로고 영역 - 중앙 정렬 */
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

/* 로고 제목 스타일 */
.auth-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.auth-logo-img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    filter: invert(1);
    transform: translateX(6px);
}

/* 인증 페이지 제목 (로그인/회원가입 등) */
.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 12px;
}

/* 인증 페이지 부제목 */
.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 48px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========== 폼 요소 ========== */
/* 폼 그룹 - 입력 필드 컨테이너 */
.form-group {
    margin-bottom: 28px;
}

/* 폼 라벨 */
.form-label {
    display: block;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 폼 입력 필드 */
.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fafafa;
}

/* 입력 필드 포커스 상태 */
.form-input:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* 입력 필드 플레이스홀더 */
.form-input::placeholder {
    color: #999;
}

/* 입력 필드 에러 상태 */
.form-input.error {
    border-color: #ccc;
    background: #fafafa;
}

/* 입력 필드 disabled 상태 */
.form-input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 폼 힌트 텍스트 */
.form-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 6px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 인증번호 발송 안내 텍스트 */
.verify-send-hint {
    font-size: 0.75rem;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* 폼 그룹 숨김 상태 */
/* 약관 동의 체크박스 */
.signup-agree-group {
    padding: 16px 0;
}

.agree-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.agree-checkbox-item:last-of-type {
    margin-bottom: 0;
}

.agree-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.agree-label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
}

.agree-label a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
}

.agree-label a:hover {
    text-decoration: underline;
}

#agreeError {
    margin-top: 10px;
}

.form-group.hidden {
    display: none;
}

/* 체크박스 그룹 */
.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

/* 체크박스 입력 */
.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #007AFF;
}

/* 체크박스 라벨 */
.form-checkbox label {
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

/* ========== 버튼 ========== */
/* 인증 버튼 (로그인/회원가입 버튼) */
.auth-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    margin-top: 40px;
}

/* 버튼 hover 효과 */
.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* 버튼 클릭 효과 */
.auth-button:active {
    transform: translateY(0);
}

/* 버튼 disabled 상태 */
.auth-button:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.auth-button:active:not(:disabled) {
    transform: translateY(0);
}

/* ========== 전화번호 입력 그룹 ========== */
/* 전화번호와 인증번호 보내기 버튼 그룹 */
.phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.phone-input-group .form-input {
    flex: 1;
}

/* 인증번호 보내기 버튼 */
.verify-button {
    padding: 16px 24px;
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.verify-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.verify-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== 인증번호 확인 그룹 ========== */
/* 인증번호 입력과 확인 버튼 그룹 */
.verify-code-group {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.verify-code-group .form-input {
    flex: 1;
}

/* 인증번호 확인 버튼 */
.verify-check-button {
    padding: 16px 24px;
    background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.verify-check-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
}

.verify-check-button:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== 구분선 ========== */
/* 인증 페이지 구분선 (또는, OR 등) */
.auth-divider {
    text-align: center;
    margin: 30px 0;
    color: #999;
    position: relative;
    font-size: 0.85rem;
}

/* 구분선 앞쪽 선 */
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

/* ========== 링크 ========== */
/* 인증 페이지 링크 컨테이너 (비밀번호 찾기, 회원가입 등) */
.auth-links {
    text-align: center;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 인증 페이지 개별 링크 */
.auth-link {
    color: #666;
    font-size: 0.9rem;
}

/* 인증 페이지 링크 내부 a 태그 */
.auth-link a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

/* 인증 페이지 링크 hover 효과 */
.auth-link a:hover {
    color: #0056CC;
    text-decoration: underline;
}

/* ========== 에러 메시지 ========== */
/* 에러 메시지 기본 스타일 (기본적으로 숨김) */
.error-message {
    color: #666;
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
    padding: 12px 16px;
    background: #fafafa;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    line-height: 1.6;
}

/* 에러 메시지 표시 상태 */
.error-message.show {
    display: block;
}

/* 에러 메시지 - 제한 초과 스타일 */
.error-message.limit-exceeded {
    background: #fafafa;
    border-color: #e5e5e5;
    color: #666;
}

.error-message.limit-exceeded strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.error-message.limit-exceeded .time-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #999;
}

/* ========== 성공 메시지 ========== */
/* 성공 메시지 기본 스타일 (기본적으로 숨김) */
.success-message {
    color: #666;
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
    padding: 12px 16px;
    background: #fafafa;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    line-height: 1.6;
    text-align: center;
}

/* 성공 메시지 표시 상태 */
.success-message.show {
    display: block;
}

/* ========== 모바일 반응형 (768px 이하) ========== */
@media (max-width: 768px) {
    /* body 상단 패딩 축소 */
    body {
        padding-top: 80px !important;
    }

    /* 인증 컨테이너 마진 축소 */
    .auth-container {
        margin: 40px auto !important;
    }

    /* 인증 박스 패딩 축소 */
    .auth-box {
        padding: 40px 30px !important;
        border-radius: 16px !important;
    }

    /* 인증 제목 폰트 크기 축소 */
    .auth-title {
        font-size: 1.5rem;
    }

    /* 로고 제목 폰트 크기 축소 */
    .auth-logo h1 {
        font-size: 2rem;
    }

    .auth-logo-img {
        height: 24px;
    }

    /* 전화번호 입력 그룹 - 모바일에서 세로 배치 */
    .phone-input-group {
        flex-direction: column;
    }

    /* 인증번호 보내기 버튼 - 모바일에서 전체 너비 */
    .verify-button {
        width: 100%;
    }
}

/* ========== 로컬 개발용 가상 로그인 ========== */
.local-dev-login {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed #cbd5e1;
}

.local-dev-login[hidden] {
    display: none !important;
}

.local-dev-login-title {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #b45309;
}

.local-dev-login-desc {
    margin: 0 0 14px;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}

.local-dev-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.local-dev-login-btn {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #94a3b8;
    background: #f8fafc;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.local-dev-login-btn:hover {
    background: #f1f5f9;
}

.local-dev-login-btn--admin {
    border-color: #7c3aed;
    color: #5b21b6;
    background: #f5f3ff;
}

.local-dev-login-btn--admin:hover {
    background: #ede9fe;
}

