/* ================= MODAL BACKDROP ================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-backdrop[hidden] {
    display: none !important;
}

/* ================= MODAL ================= */

.modal {
    background: #0f1433;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    position: relative;
}

/* ================= CLOSE BUTTON ================= */

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ================= FORM ================= */

.modal form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal input {
    padding: 10px;
}

.modal-error {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid #ff5050;
    color: #ffb3b3;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.register-error {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid #ff5050;
    color: #ffb3b3;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 260px;
    max-width: 340px;
    padding: 14px 18px;
    border-radius: 6px;
    color: #fff;
    border: 1px solid #111;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

/* Fortschrittsbalken */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    transform-origin: left center;
}

.toast.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.toast.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.toast.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

