/* Authentication Styles - E-Education LK LMS */

body.page-auth {
    background: #f3f4f6 !important;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.auth-card {
    flex: 1;
    max-width: 420px;
    background: #ffffff !important;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card * {
    color: #1f2937 !important;
    background: transparent !important;
}

.auth-card {
    flex: 1;
    max-width: 320px;
    background: #ffffff !important;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card h1, .auth-card h2, .auth-card h3, .auth-card p, .auth-card span, .auth-card div {
    color: #1f2937 !important;
}

.auth-card-large {
    max-width: 600px;
    overflow-y: auto;
    max-height: 100vh;
    padding-bottom: 2rem;
    flex: 1;
}

body.page-auth {
    overflow-x: hidden;
    min-height: 100vh;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    overflow-y: auto;
    padding: 1rem;
}

.auth-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    color: white;
    background: rgba(0, 0, 0, 0.2);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.auth-logo h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.auth-subtitle {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #1f2937 !important;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1f2937 !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1 !important;
    background: white !important;
    color: #1f2937 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280 !important;
    font-size: 0.875rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #4b5563 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-link {
    color: #6366f1 !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #4f46e5 !important;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #6b7280 !important;
    margin-bottom: 0.5rem;
}

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

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

.auth-links {
    margin-top: 1rem;
}

.features-list {
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.feature-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #10b981;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-card,
    .auth-card-large {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .auth-features {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-card,
    .auth-card-large {
        padding: 1.5rem 1rem;
    }
    
    .auth-logo h1 {
        font-size: 1.25rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* Force overrides for login form */
.form-label {
    color: #000000 !important;
    font-weight: 600 !important;
    display: block;
    margin-bottom: 0.25rem;
}

.auth-card .form-group input {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #d1d5db !important;
}

.auth-card .form-group label {
    color: #000000 !important;
    font-weight: 600 !important;
}

.auth-card .auth-header .auth-logo h1 {
    color: #1a202c !important;
}

.auth-card .auth-subtitle {
    color: #4b5563 !important;
}