/* Custom Styles for Auth Layout */

/* Auth Page Background */
.auth-body {
    background-color: #020617;
    background-image:
        radial-gradient(at 0% 0%, rgba(153, 0, 0, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 23, 42, 1) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Toast Notifications (Modernized) */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2147483647;
    /* Max z-index to ensure visibility */
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    background: #1e293b;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex !important;
    /* Force display flex */
    visibility: hidden;
    /* Start hidden but layout ready */
    align-items: center;
    gap: 0.75rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible !important;
}

.toast-success {
    background: #064e3b;
    /* Darker green */
    border-color: #059669;
    color: #a7f3d0;
}

.toast-danger {
    background: #7f1d1d;
    /* Darker red */
    border-color: #dc2626;
    color: #fca5a5;
}

.toast-primary {
    background: #1e3a8a;
    /* Darker blue */
    border-color: #2563eb;
    color: #bfdbfe;
}

[dir="rtl"] .toast {
    right: auto;
    left: 2rem;
}

/* Fallback Audio Prompt (Refined) */
/* Only shown if silent unlock fails repeatedly - rarely used now but kept for safety */
.audio-prompt {
    position: fixed;
    bottom: 5.5rem;
    /* Stack above toast */
    left: 2rem;
    z-index: 9999;
    max-width: 320px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.bg-shape-1 {
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #990000 0%, transparent 70%);
}

.bg-shape-2 {
    bottom: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    animation: slideUp 0.5s ease-out;
}