/**
 * Simple Auth Styles - Clean & Minimal
 */

/* Auth Body */
.auth-body {
    font-family: var(--font-primary);
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth Page Container */
.auth-page {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Alerts */
.alert {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

/* Form Styles */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.required {
    color: #dc2626;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    background: white;
}

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

.form-input.error {
    border-color: #dc2626;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Form Row - Not used in simplified register */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.password-toggle:hover {
    color: #374151;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    height: 1rem;
}

.strength-weak {
    color: #dc2626;
}

.strength-medium {
    color: #f59e0b;
}

.strength-strong {
    color: #10b981;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #6b7280;
}

.checkbox-input {
    margin-right: 0.5rem;
}

/* Links */
.forgot-link,
.auth-link,
.terms-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-link:hover,
.auth-link:hover,
.terms-link:hover {
    text-decoration: underline;
}

/* Form Agreement */
.form-agreement {
    margin-bottom: 1.5rem;
}

.form-agreement .checkbox-label {
    font-size: 0.875rem;
    line-height: 1.4;
    align-items: flex-start;
}

.form-agreement .checkbox-input {
    margin-top: 0.125rem;
}

/* Auth Button */
.auth-button {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-button:hover {
    background: #2563eb;
}

.auth-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.button-loader {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

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

/* Auth Footer */
.auth-footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-options {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* Focus states for accessibility */
.auth-button:focus,
.form-input:focus,
.checkbox-input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Clean form styling */
.form-input::placeholder {
    color: #9ca3af;
}

/* Remove browser default styles */
.checkbox-input {
    accent-color: #3b82f6;
}

/* Simple hover effects */
.auth-card {
    transition: box-shadow 0.2s ease;
}

.auth-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
