/**
 * Mobin AI Sphere - Common Styles
 * Professional CSS for production use
 */

/* Base Styles */
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Custom Tailwind Extensions */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.btn-google {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(66, 133, 244, 0.3);
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(66, 133, 244, 0.4);
}

.alert-error {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    color: #991b1b;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
}

.alert-success {
    background-color: #f0fdf4;
    border: 2px solid #bbf7d0;
    color: #166534;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
}

.alert-info {
    background-color: #eff6ff;
    border: 2px solid #bfdbfe;
    color: #1e40af;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
}

/* Logo Container */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 1rem;
    box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.4);
}

/* Auth Page Container */
.auth-container {
    max-width: 28rem;
    width: 100%;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
}

/* Form Label */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

/* Link Styles */
.link-primary {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-primary:hover {
    color: #2563eb;
    text-decoration: underline;
}

.link-secondary {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-secondary:hover {
    color: #374151;
}

/* Password Strength Indicator */
.password-match {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.password-match.match {
    color: #16a34a;
}

.password-match.mismatch {
    color: #dc2626;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.input-with-icon input {
    padding-left: 2.75rem;
}

/* Page Title */
.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Spacing */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

/* Loading Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.card-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

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

.divider span {
    position: relative;
    background-color: white;
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}
