/* Authentication Pages Styles */

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 0;
}

.auth-page .navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.auth-page .nav-brand h1 a {
    color: white;
    text-decoration: none;
}

.auth-page .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.auth-page .nav-link:hover {
    color: white;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    align-items: start;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: #8B4513;
    width: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-help {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.field-error {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
    display: none;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #8B4513;
    border-color: #8B4513;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    color: #666;
}

.auth-footer a {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Features */
.auth-features {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.auth-features h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #666;
    line-height: 1.5;
}

/* Demo Accounts */
.demo-accounts {
    margin-bottom: 2rem;
}

.demo-account {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.demo-account:hover {
    border-color: #8B4513;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.demo-account h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-credentials {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    font-family: 'Courier New', monospace;
}

.demo-credentials p {
    margin: 0.25rem 0;
    color: #495057;
}

.demo-description {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.auth-info {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
    margin-top: 2rem;
}

.auth-info h4 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.alert-success {
    background: #d1edff;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert p {
    margin: 0.5rem 0 0 0;
}

.alert a {
    color: inherit;
    font-weight: 500;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent !important;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .auth-card,
    .auth-features {
        padding: 2rem;
    }
    
    .auth-header h2 {
        font-size: 1.75rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-content {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .auth-card,
    .auth-features {
        padding: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
}