/* 인증 관련 스타일 */

.auth-container {
    max-width: 900px;
    width: 90%;
    margin: 80px auto 40px;
    padding: 50px 80px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .auth-container {
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group .input-hint {
    font-size: 12px;
    color: #95a5a6;
}

.form-group .input-error {
    font-size: 12px;
    color: #e74c3c;
}

.form-group .input-success {
    font-size: 12px;
    color: #27ae60;
}

.auth-btn {
    padding: 14px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.auth-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e1e8ed;
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    color: #95a5a6;
    font-size: 13px;
    position: relative;
}

body.dark-mode .auth-divider span {
    background: rgba(30, 41, 59, 0.98);
}

/* 소셜 로그인 버튼 */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: white;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.social-btn svg {
    flex-shrink: 0;
}

.google-btn:hover {
    border-color: #4285F4;
    background: #f8f9ff;
}

.kakao-btn {
    background: #FEE500;
    border-color: #FEE500;
    color: #3C1E1E;
}

.kakao-btn:hover {
    background: #fdd835;
    border-color: #fdd835;
}

body.dark-mode .social-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .google-btn:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: #4285F4;
}

body.dark-mode .kakao-btn {
    background: #FEE500;
    border-color: #FEE500;
    color: #3C1E1E;
}

body.dark-mode .kakao-btn:hover {
    background: #fdd835;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.auth-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 사용자 메뉴 */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.user-menu-item:first-child {
    border-radius: 10px 10px 0 0;
}

.user-menu-item:last-child {
    border-radius: 0 0 10px 10px;
    border-bottom: none;
}

.user-menu-item:hover {
    background: #f8f9fa;
}

.user-menu-item.logout {
    color: #e74c3c;
}

/* 반응형 */
@media (max-width: 768px) {
    .auth-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
}
