/* Auth modal + toast for SWAYAM clone */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-modal {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 28px 28px 24px;
    animation: authPop .18s ease-out;
}

@keyframes authPop {
    from { transform: scale(.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.auth-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.auth-close:hover { color: #000; }

.auth-header { text-align: center; margin-bottom: 16px; }

.auth-logo { height: 44px; margin-bottom: 10px; }

.auth-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1c1d1f;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 18px;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: #6a6f73;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: #0053A1;
    border-bottom-color: #0053A1;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1c1d1f;
    margin: 12px 0 4px;
}

.auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #1c1d1f;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: 2px solid #0053A1;
    outline-offset: -1px;
}

.auth-submit {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: #0053A1;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
}

.auth-submit:hover { background-color: #003e7a; }
.auth-submit:disabled { opacity: .6; cursor: default; }

.auth-error {
    background: #fdeaea;
    border: 1px solid #f5c2c2;
    color: #b3261e;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 4px;
}

/* Toast */
.swayam-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1d1f;
    color: #fff;
    padding: 12px 22px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 4000;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
    max-width: 90vw;
    text-align: center;
}

.swayam-toast.success { background: #1e7e34; }
.swayam-toast.error { background: #b3261e; }
