/* Authentication Pages CSS */

/* Authentication Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--primary-hover) 100%);
}

.auth-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.auth-card.large {
    max-width: 500px;
}

/* Authentication Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Authentication Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: var(--text-color);
    background-color: var(--hover-bg);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--card-bg);
}

/* Authentication Forms */
.auth-form {
    margin-bottom: 24px;
}

.auth-form.hidden {
    display: none;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form .form-control {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.auth-form .btn-primary {
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Authentication Help and Links */
.auth-help {
    margin: 24px 0;
    text-align: center;
}

.help-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.auth-links {
    margin-top: 16px;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Authentication Footer */
.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 24px;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Success Page Styles */
.success-content {
    text-align: center;
    margin: 32px 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.8;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.email-instructions {
    background-color: var(--card-header-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    text-align: left;
}

.email-instructions h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.email-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.email-instructions li {
    color: var(--text-muted);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* Info Box (Organization Registration) */
.info-box {
    background-color: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.info-box h4 {
    color: var(--info-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    color: var(--info-color);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.modal-body {
    padding: 20px 24px 24px;
}

/* Dark theme adjustments for auth pages */
[data-theme="dark"] .auth-container {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--primary-hover) 100%);
}

[data-theme="dark"] .auth-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .info-box {
    background-color: rgba(116, 192, 252, 0.1);
    border: 1px solid rgba(116, 192, 252, 0.3);
}

[data-theme="dark"] .info-box h4,
[data-theme="dark"] .info-box li {
    color: var(--info-color);
}

[data-theme="dark"] .modal-content {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        padding: 16px;
    }
    
    .auth-card {
        padding: 32px 24px;
        border-radius: 8px;
    }
    
    .auth-logo {
        width: 48px;
        height: 48px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .modal-content {
        margin: 16px;
        max-width: none;
    }
    
    .modal-header,
    .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}
