/* ZMS CMS - 인증 페이지 전용 스타일 (login, signup, find_id, find_password, verify) */

/* 인증 페이지 레이아웃 */
.auth-page-container {
    min-height: 100vh;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    overflow: hidden;
}

.auth-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.auth-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* 폼 스타일 */
.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group:last-child {
    margin-bottom: 0;
}

.auth-form label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form .form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.auth-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

.auth-form .form-control::placeholder {
    color: #adb5bd;
}

/* 버튼 스타일 */
.btn-auth {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.btn-auth:last-child {
    margin-bottom: 0;
}

.btn-auth.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
}

.btn-auth.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-auth.btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
}

.btn-auth.btn-secondary:hover {
    background: #545b62;
}

/* 링크 스타일 */
.auth-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 알림 메시지 */
.auth-alert {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.auth-alert.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.auth-alert.warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.auth-alert.info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* 체크박스 스타일 */
.auth-checkbox {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.auth-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.auth-checkbox label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.875rem;
}

/* 비밀번호 강도 표시 */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    text-align: right;
}

.password-strength-text.weak {
    color: #dc3545;
}

.password-strength-text.medium {
    color: #ffc107;
}

.password-strength-text.strong {
    color: #28a745;
}

/* 인증 코드 입력 */
.verification-code {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.verification-code input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid #ced4da;
    border-radius: 0.375rem;
    background: white;
}

.verification-code input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

.code-input {
    font-size: 24px;
    text-align: center;
    letter-spacing: 10px;
    font-weight: bold;
}

/* 타이머 */
.auth-timer {
    text-align: center;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.auth-timer.warning {
    color: #ffc107;
}

.auth-timer.danger {
    color: #dc3545;
}

/* 소셜 로그인 */
.social-login {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.social-login-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
    position: relative;
}

.social-login-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
    z-index: 1;
}

.social-login-title span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.social-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-social {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-social:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #495057;
}

.btn-social.google {
    border-color: #db4437;
    color: #db4437;
}

.btn-social.google:hover {
    background: #db4437;
    color: white;
}

.btn-social.kakao {
    border-color: #fee500;
    background: #fee500;
    color: #3c1e1e;
}

.btn-social.kakao:hover {
    background: #e6ce00;
}

/* 반응형 스타일 */
@media (max-width: 576px) {
    .auth-page-container {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .auth-card {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid #dee2e6;
        border-bottom: 1px solid #dee2e6;
    }
    
    .auth-header,
    .auth-body,
    .auth-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .auth-links {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .verification-code input {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}
