/* Authentication Pages - Consolidated Styles */

/* Common Auth Styles */
.auth-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.auth-header {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

.auth-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.auth-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.auth-body {
    padding: 2rem;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-floating label {
    padding: 1rem 0.75rem;
    color: var(--text-secondary);
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.btn-register,
.btn-login {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-register:hover,
.btn-login:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.validation-summary-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
}

.field-validation-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.input-validation-error {
    border-color: #dc2626 !important;
}

.input-validation-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25) !important;
}

.user-type-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #0369a1;
}

.user-type-info i {
    margin-right: 0.5rem;
}

/* Access Denied Specific Styles */
.access-denied-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.access-denied-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.access-denied-header {
    background: #dc2626;
    color: white;
    text-align: center;
    padding: 2rem;
}

.access-denied-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.access-denied-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.access-denied-body {
    padding: 2rem;
}

.access-denied-icon {
    font-size: 4rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.btn-home {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card,
    .access-denied-card {
        margin: 1rem;
        max-width: none;
    }
    
    .auth-header,
    .access-denied-header {
        padding: 1.5rem;
    }
    
    .auth-body,
    .access-denied-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .auth-section,
    .access-denied-section {
        padding: 1rem 0;
    }
    
    .auth-header h2,
    .access-denied-header h2 {
        font-size: 1.5rem;
    }
}
