/* /var/www/html/assets/css/auth.css */
/* Authentication Pages Styles */

:root {
    --primary-color: #a8c8ec;
    --primary-dark: #7bb3f0;
    --primary-bg: #f0f4ff;
    --danger-color: #f5a5a5;
    --danger-bg: #fef0f0;
    --success-color: #a8d5a8;
    --success-bg: #f0f8f0;
    
    --text-dark: #212529;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --border-radius: 10px;
    --border-radius-xl: 20px;
    
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
}

body {
    background: var(--primary-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 1rem;
}

.auth-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    border: 2px solid var(--primary-color);
}

.auth-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.auth-header i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.auth-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 300;
}

.auth-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.auth-form {
    padding: 2rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(168, 200, 236, 0.25);
    outline: none;
}

.btn-auth {
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    color: var(--text-light);
    transition: all 0.3s ease;
    margin-top: 1rem;
    cursor: pointer;
}

.btn-auth:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(168, 200, 236, 0.3);
    color: var(--text-light);
}

.btn-auth:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 0.5rem;
}

.alert-danger {
    background: var(--danger-bg);
    color: #8b2635;
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: var(--success-bg);
    color: #2d5a2d;
    border-left: 4px solid var(--success-color);
}

.system-info {
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    border: 1px solid var(--primary-color);
}

.system-info strong {
    color: var(--text-dark);
}

/* Loading state */
.loading .btn-text {
    display: none;
}

.loading .loading-spinner {
    display: inline-flex;
    align-items: center;
}

.loading-spinner {
    display: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    body {
        padding: 0.5rem;
    }
    
    .auth-container {
        border-radius: var(--border-radius);
    }
    
    .auth-header {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
}