/* ============================================================
   Auth Layout — Global Styles
   Extracted from _AuthLayout.cshtml
   ============================================================ */

body {
    margin: 0;
    overflow-x: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f3f9 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.title-gradient {
    background: linear-gradient(135deg, #0018a0 0%, #000b63 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

input,
select {
    border: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

input:focus,
select:focus {
    outline: none !important;
}

@media (max-height: 850px) {
    body { align-items: flex-start; }
    main { padding-top: 3rem; padding-bottom: 3rem; }
}

/* --- Custom Apple Toast System --- */
#custom-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.apple-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    padding: 1rem;
    min-width: 320px;
    max-width: 420px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.apple-toast.exiting {
    animation: toastSlideOut 0.4s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(120%) scale(0.9); opacity: 0; }
    to   { transform: translateX(0)    scale(1);   opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0)    scale(1);   opacity: 1; }
    to   { transform: translateX(100%) scale(0.8); opacity: 0; }
}

.toast-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.toast-success-bg { background-color: rgba(16, 185, 129, 0.1); }
.toast-error-bg   { background-color: rgba(239, 68, 68, 0.1);  }
.toast-info-bg    { background-color: rgba(0, 24, 160, 0.1);   }
