/* Toast "Sesi tamat" di halaman log masuk (auth/login.blade.php).
   Gaya sama dengan iGrass (public/assets/css/login.css). */
.login-toast-stack {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    width: min(440px, calc(100% - 24px));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-toast {
    --accent: #d93a3a;
    --accent-soft: #fdecec;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 14px 18px 16px;
    background: #ffffff;
    color: #1f2937;
    border-radius: 14px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 12px 32px rgba(10, 20, 60, .28), 0 2px 6px rgba(10, 20, 60, .12);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    animation: loginToastIn .35s cubic-bezier(.2, .9, .3, 1.2) both;
}
.login-toast--session { --accent: #e08a00; --accent-soft: #fff4e0; }
.login-toast--warning { --accent: #d08700; --accent-soft: #fff6dc; }

.login-toast__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
}

.login-toast__body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 1px;
}
.login-toast__title {
    display: block;
    font-weight: 600;
    font-size: 15.5px;
    color: #111827;
    margin-bottom: 2px;
}
.login-toast__msg {
    display: block;
    color: #4b5563;
}

.login-toast__close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin: -4px -2px 0 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.login-toast__close:hover { background: #f3f4f6; color: #111827; }
.login-toast__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.login-toast__timer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--accent);
    opacity: .35;
    transform-origin: left center;
    animation: loginToastTimer 10s linear forwards;
}
.login-toast.is-paused .login-toast__timer { animation-play-state: paused; }

.login-toast.is-leaving { animation: loginToastOut .25s ease-in forwards; }

@keyframes loginToastIn {
    from { opacity: 0; transform: translateY(-14px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
@keyframes loginToastOut {
    to { opacity: 0; transform: translateY(-10px) scale(.97); }
}
@keyframes loginToastTimer {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .login-toast, .login-toast.is-leaving { animation: none; }
    .login-toast__timer { display: none; }
}

@media screen and (max-width: 480px) {
    .login-toast-stack { top: 12px; }
    .login-toast { font-size: 14px; padding: 14px 12px 16px 14px; gap: 12px; }
    .login-toast__icon { width: 36px; height: 36px; }
}
