/* ============================================
   AUTH PAGES - BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f8fbff;
    color: #0b1a33;
    line-height: 1.6;
    min-height: 100vh;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-height: 68px;
    width: auto;
    display: block;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-sm {
    max-width: 450px;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e9eff6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #fafcff;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1a33;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #a0aec0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 8px;
    line-height: 1;
}

.modal-close:hover {
    color: #e53e3e;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9eff6;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    background: #fafcff;
}

/* ============================================
   ALERT OVERRIDES
   ============================================ */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: alertSlideIn 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border-left: 4px solid #a0aec0;
}

@keyframes alertSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    border-left-color: #48bb78;
}

.alert-error {
    border-left-color: #fc8181;
}

.alert-warning {
    border-left-color: #ecc94b;
}

.alert-info {
    border-left-color: #63b3ed;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0b1a33;
}

.alert-message {
    font-size: 0.9rem;
    color: #4a5f7a;
}

.alert-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 4px;
    flex-shrink: 0;
}

.alert-close:hover {
    color: #0b1a33;
}

.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e2e8f0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.alert-progress-bar {
    height: 100%;
    background: #a0aec0;
    animation: progressBar 5s linear forwards;
    border-radius: 0 0 12px 12px;
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .modal {
        margin: 10px;
    }
    
    .alert-container {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}