/* ============================================
   Authentication Pages - Stylesheet
   ============================================ */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    background: linear-gradient(135deg, #FF6B35 0%, #004E89 100%);
}

.auth-card {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #111827;
    text-align: center;
}

.auth-card > p {
    text-align: center;
    color: #6B7280;
    margin-bottom: 2rem;
}

/* ============================================
   Role Selector
   ============================================ */

.role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-btn {
    padding: 1rem;
    border: 2px solid #E5E7EB;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6B7280;
    transition: all 0.3s ease;
}

.role-btn:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}

.role-btn.active {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

/* ============================================
   Forms
   ============================================ */

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

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

.form-group label {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: #111827;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

/* ============================================
   Form Options
   ============================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #6B7280;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-link {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* ============================================
   Buttons
   ============================================ */

.btn-block {
    width: 100%;
}

/* ============================================
   Auth Footer
   ============================================ */

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6B7280;
}

.auth-footer a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* ============================================
   Error Message
   ============================================ */

.error-message {
    background-color: #FEE2E2;
    color: #DC2626;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #DC2626;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.success-message {
    background-color: #DCFCE7;
    color: #16A34A;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #16A34A;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ============================================
   Multi-Step Form
   ============================================ */

.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.form-step {
    flex: 1;
    height: 4px;
    background-color: #E5E7EB;
    margin: 0 0.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.form-step.active,
.form-step.completed {
    background-color: #FF6B35;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* ============================================
   Document Upload
   ============================================ */

.file-upload {
    border: 2px dashed #E5E7EB;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #FF6B35;
    background-color: #FFF5F0;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-text {
    color: #6B7280;
    font-size: 0.9rem;
}

.file-upload-text strong {
    color: #FF6B35;
}

/* ============================================
   Dark Mode
   ============================================ */

body.dark-mode .auth-card {
    background-color: #1F2937;
    color: #F3F4F6;
}

body.dark-mode .auth-card h1 {
    color: #F3F4F6;
}

body.dark-mode .auth-card > p {
    color: #D1D5DB;
}

body.dark-mode .role-btn {
    background-color: #374151;
    border-color: #4B5563;
    color: #D1D5DB;
}

body.dark-mode .role-btn:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}

body.dark-mode .role-btn.active {
    background-color: #FF6B35;
    color: white;
}

body.dark-mode .form-group label {
    color: #F3F4F6;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background-color: #374151;
    border-color: #4B5563;
    color: #F3F4F6;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #FF6B35;
}

body.dark-mode .form-options {
    color: #D1D5DB;
}

body.dark-mode .remember-me {
    color: #D1D5DB;
}

body.dark-mode .file-upload {
    border-color: #4B5563;
}

body.dark-mode .file-upload:hover {
    background-color: rgba(255, 107, 53, 0.1);
}

body.dark-mode .file-upload-text {
    color: #D1D5DB;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem;
    }

    .auth-card h1 {
        font-size: 1.5rem;
    }

    .role-selector {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
