/* 인증 페이지 전용 스타일 */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 50%, #A5D6A7 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: slideInUp 0.6s ease-out;
}

.auth-header {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.auth-form {
    padding: 2.5rem 2rem 2rem;
}

.auth-form h2 {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form .form-group input,
.auth-form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.auth-form .form-group input:focus,
.auth-form .form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.auth-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.auth-form .form-group small {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.auth-form .required {
    color: #f44336;
    font-weight: bold;
}

.auth-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.auth-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #2E7D32;
    text-decoration: underline;
}

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

.auth-footer a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #4CAF50;
}

/* Alert Styles for Auth Pages */
.auth-form .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.auth-form .alert::before {
    margin-right: 8px;
    font-size: 1.2rem;
}

.auth-form .alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-form .alert-success::before {
    content: '✓';
}

.auth-form .alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-form .alert-error::before {
    content: '✕';
}

.auth-form .alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.auth-form .alert-warning::before {
    content: '⚠';
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
}

.password-strength-fill.weak {
    background: #f44336;
    width: 30%;
}

.password-strength-fill.medium {
    background: #ff9800;
    width: 60%;
}

.password-strength-fill.strong {
    background: #4CAF50;
    width: 100%;
}

.password-strength-text {
    font-size: 0.8rem;
    color: #666;
}

/* Checkbox and Radio Styles */
.checkbox-group,
.radio-group {
    margin: 1rem 0;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.checkbox-item label,
.radio-item label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* Loading State */
.auth-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Social Login Buttons */
.social-login {
    margin: 1.5rem 0;
}

.social-login-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

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

.social-login-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.social-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    border-color: #4CAF50;
    background: #f8f9fa;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation Visual Feedback */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #f44336;
    background-color: #fff5f5;
}

.form-group.has-success input,
.form-group.has-success textarea {
    border-color: #4CAF50;
    background-color: #f8fff8;
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-group.has-success input:focus,
.form-group.has-success textarea:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.error-message,
.success-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.error-message {
    color: #f44336;
}

.success-message {
    color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        max-width: 100%;
    }
    
    .auth-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .auth-footer {
        padding: 1.5rem;
    }
    
    .auth-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .auth-header {
        padding: 1.5rem 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .auth-form {
        padding: 1.5rem 1rem;
    }
    
    .auth-footer {
        padding: 1rem;
    }
    
    .auth-form .btn {
        padding: 14px;
        font-size: 1rem;
    }
}