/* :::: AUTHENTICATION MODAL STYLES :::: */

.auth-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100vh;
    background: rgba(25, 37, 51, 0.85);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-container {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    border-radius: 12px;
    padding: 35px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-overlay.active .auth-container {
    transform: translateY(0);
}

.auth-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
    padding: 5px;
}

.auth-close:hover { color: var(--primary-dark); }

/* --- Tabs --- */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: none; border: none;
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.tab-btn.active {
    color: #192533;
    border-bottom-color: #40E0D0;
}

/* --- Logo & Subtitle --- */
.auth-form-box {
    display: none;
    animation: fadeIn 0.4s ease;
    text-align: center;
}
.auth-form-box.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-logo { 
    margin-bottom: 15px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-logo img { 
    height: 50px; 
    width: auto; 
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.auth-subtitle {
    font-size: 13px; color: #666; margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
}

/* --- Inputs --- */
.input-group { margin-bottom: 15px; text-align: left; }
.input-group label {
    display: block; font-size: 11px; font-weight: 700;
    color: #192533; margin-bottom: 6px; text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-group input {
    width: 100%; padding: 12px; border: 1px solid #ddd;
    border-radius: 6px; font-family: 'Poppins', sans-serif; outline: none;
    font-size: 14px; transition: border-color 0.3s;
}
.input-group input:focus { border-color: #40E0D0; }

/* --- Buttons & Links --- */
.form-actions {
    display: flex; justify-content: space-between;
    align-items: center; font-size: 12px; margin-bottom: 20px; text-align: left;
    color: #555;
}
.forgot-pass { color: #40E0D0; text-decoration: none; font-weight: 600; }

.auth-submit-btn {
    width: 100%; padding: 14px; background: #192533;
    color: white; border: none; border-radius: 30px;
    font-family: 'Poppins', sans-serif; font-weight: 700; cursor: pointer;
    text-transform: uppercase; transition: background 0.3s, transform 0.2s;
    font-size: 13px; letter-spacing: 1px;
}
.auth-submit-btn:hover { background: #40E0D0; transform: translateY(-2px); }

/* :::: TOAST NOTIFICATION STYLES :::: */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 25px;
    background: #192533;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
    z-index: 100000;
    border-left: 5px solid #40E0D0;
    min-width: 300px;
    animation: slideIn 0.5s ease forwards;
}

.toast-notification.error { border-left-color: #e74c3c; }
.toast-notification.success { border-left-color: #40E0D0; }

.toast-icon { font-size: 20px; color: #40E0D0; }
.toast-notification.error .toast-icon { color: #e74c3c; }

.toast-content span { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500; }

.toast-close {
    background: none; border: none; color: #aaa; cursor: pointer;
    font-size: 16px; margin-left: auto;
}
.toast-close:hover { color: white; }
.toast-notification.hide { animation: slideOut 0.5s ease forwards; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* :::: RESPONSIVE :::: */
@media (max-width: 768px) {
    .auth-logo img { height: 45px; }
}

@media (max-width: 480px) {
    .auth-logo img { height: 35px; }
    .auth-container { padding: 25px 20px; }
}