/* Authentication Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #cbb6e0 100%);
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.signup-card {
    max-width: 600px;
}

.logo-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo {
    margin-bottom: 20px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 50%;
}

.logo-section h1 {
    font-size: 18px;
    margin: 10px 0 5px 0;
    font-weight: 600;
}

.logo-section h2 {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

.auth-form-section {
    padding: 40px 30px;
}

.auth-form-section h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.auth-form-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.flash-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.flash-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group small {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-notice {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.form-notice p {
    margin: 0;
    color: #0c4a6e;
    font-size: 14px;
}

.auth-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-links p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-links a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

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

/* Pending Approval Styles */
.pending-status {
    text-align: center;
}

.status-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.pending-status h3 {
    color: #f59e0b;
    margin-bottom: 16px;
}

.status-details {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.status-details h4 {
    color: #92400e;
    margin-bottom: 12px;
    font-size: 16px;
}

.status-details ul {
    margin: 0;
    padding-left: 20px;
    color: #78350f;
}

.status-details li {
    margin-bottom: 8px;
    font-size: 14px;
}

.pending-actions {
    margin-top: 30px;
}

/* Dark theme adjustments */
[data-theme="dark"] .form-notice {
    background: #1e293b;
    border-color: #0ea5e9;
}

[data-theme="dark"] .form-notice p {
    color: #0ea5e9;
}

[data-theme="dark"] .status-details {
    background: #1e293b;
    border-color: #fcd34d;
}

[data-theme="dark"] .status-details h4 {
    color: #fcd34d;
}

[data-theme="dark"] .status-details li {
    color: #e2e8f0;
}


/* ===== RESPONSIVE DESIGN FOR AUTHENTICATION ===== */

/* Extra Small Devices (phones, 320px and up) */
@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
        min-height: 100vh;
    }
    
    .auth-card {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .signup-card {
        max-width: 100%;
    }
    
    .logo-section {
        padding: 30px 20px;
        flex-shrink: 0;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon::before {
        width: 25px;
        height: 25px;
    }
    
    .logo-section h1 {
        font-size: 16px;
        margin: 15px 0 5px 0;
    }
    
    .logo-section h2 {
        font-size: 14px;
    }
    
    .auth-form-section {
        padding: 30px 20px;
        flex: 1;
    }
    
    .auth-form-section h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .auth-form-section p {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .auth-btn {
        padding: 14px 20px;
        font-size: 15px;
        margin-top: 15px;
        width: 100%;
    }
    
    .form-notice {
        padding: 12px;
        margin: 15px 0;
    }
    
    .form-notice p {
        font-size: 13px;
    }
    
    .auth-links {
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .auth-links p {
        font-size: 13px;
    }
    
    .flash-message {
        padding: 10px 16px;
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    /* Pending approval adjustments */
    .status-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .pending-status h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .status-details {
        padding: 15px;
        margin: 15px 0;
    }
    
    .status-details h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .status-details li {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* Small Devices (landscape phones, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        max-width: 500px;
        border-radius: 15px;
    }
    
    .signup-card {
        max-width: 650px;
    }
    
    .logo-section {
        padding: 35px 25px;
    }
    
    .auth-form-section {
        padding: 35px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .auth-btn {
        width: 100%;
    }
}

/* Medium Devices (tablets, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .auth-container {
        padding: 20px;
    }
    
    .auth-card {
        max-width: 500px;
    }
    
    .signup-card {
        max-width: 700px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Large Devices (desktops, 1025px to 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .auth-card {
        max-width: 480px;
    }
    
    .signup-card {
        max-width: 650px;
    }
}

/* Extra Large Devices (large desktops, 1441px and up) */
@media (min-width: 1441px) {
    .auth-card {
        max-width: 520px;
    }
    
    .signup-card {
        max-width: 700px;
    }
    
    .logo-section {
        padding: 50px 35px;
    }
    
    .auth-form-section {
        padding: 50px 35px;
    }
    
    .auth-form-section h3 {
        font-size: 26px;
    }
    
    .auth-form-section p {
        font-size: 15px;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .auth-btn {
        padding: 16px 28px;
        font-size: 17px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .auth-card {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .logo-section {
        padding: 20px 30px;
    }
    
    .logo-section h1 {
        font-size: 16px;
        margin: 8px 0 4px 0;
    }
    
    .logo-section h2 {
        font-size: 14px;
    }
    
    .auth-form-section {
        padding: 25px 30px;
    }
    
    .auth-form-section h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .auth-form-section p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-notice {
        padding: 12px;
        margin: 12px 0;
    }
    
    .auth-links {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    .form-group input,
    .form-group select,
    .auth-btn {
        min-height: 44px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 16px;
    }
    
    .auth-btn {
        padding: 14px 24px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .auth-card {
        border: 2px solid #000;
    }
    
    .form-group input,
    .form-group select {
        border: 2px solid #000;
    }
    
    .auth-btn {
        border: 2px solid #000;
    }
    
    .form-notice {
        border: 2px solid #0ea5e9;
    }
    
    .status-details {
        border: 2px solid #fcd34d;
    }
}

/* Print Styles for Auth Pages */
@media print {
    .auth-container {
        background: white !important;
        padding: 0;
    }
    
    .auth-card {
        box-shadow: none !important;
        border: 1px solid black;
        background: white !important;
        max-width: 100%;
        border-radius: 0;
    }
    
    .logo-section {
        background: white !important;
        color: black !important;
        border-bottom: 1px solid black;
    }
    
    .auth-form-section {
        color: black !important;
    }
    
    .auth-btn,
    .form-group input,
    .form-group select {
        display: none;
    }
    
    .form-notice,
    .status-details {
        background: white !important;
        color: black !important;
        border: 1px solid black;
    }
    
    .flash-message {
        background: white !important;
        color: black !important;
        border: 1px solid black;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .auth-btn,
    .form-group input,
    .form-group select,
    .flash-message {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark Theme Responsive Adjustments */
[data-theme="dark"] {
    @media (max-width: 480px) {
        .auth-container {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        }
    }
}

