/* Write your custom css in this file. */

/* --- Auth pages (signin, forgot password, reset password): animated bubbles + glass card --- */
.signin-page .auth-visual-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(125deg, #120c2c 0%, #1e1b4b 18%, #312e81 38%, #164e63 62%, #0f766e 82%, #134e4a 100%);
}

.signin-page .auth-bg-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.signin-page .auth-bg-photo + .auth-bubbles .auth-bubble {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.signin-page .auth-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at 50% 120%, rgba(15, 23, 42, 0.55) 0%, transparent 45%),
        radial-gradient(ellipse 80% 50% at 80% -10%, rgba(99, 102, 241, 0.35) 0%, transparent 42%),
        radial-gradient(ellipse 60% 45% at 10% 20%, rgba(20, 184, 166, 0.22) 0%, transparent 40%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, transparent 35%, rgba(15, 23, 42, 0.4) 100%);
}

.signin-page .auth-bubbles {
    position: absolute;
    inset: 0;
}

.signin-page .auth-bubble {
    position: absolute;
    bottom: -100px;
    left: var(--bubble-x, 50%);
    width: var(--bubble-s, 60px);
    height: var(--bubble-s, 60px);
    margin-left: calc(var(--bubble-s, 60px) / -2);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.07) 100%);
    box-shadow:
        inset 0 0 24px rgba(255, 255, 255, 0.35),
        0 0 48px rgba(129, 140, 248, 0.12);
    animation: auth-bubble-rise linear infinite;
    animation-duration: var(--bubble-dur, 22s);
    animation-delay: var(--bubble-delay, 0s);
    will-change: transform, opacity;
}

.signin-page .auth-bubble:nth-child(1) {
    --bubble-x: 8%;
    --bubble-s: 42px;
    --bubble-dur: 19s;
    --bubble-delay: 0s;
    --drift: -18px;
}

.signin-page .auth-bubble:nth-child(2) {
    --bubble-x: 18%;
    --bubble-s: 78px;
    --bubble-dur: 26s;
    --bubble-delay: -3s;
    --drift: 28px;
}

.signin-page .auth-bubble:nth-child(3) {
    --bubble-x: 28%;
    --bubble-s: 34px;
    --bubble-dur: 16s;
    --bubble-delay: -8s;
    --drift: 12px;
}

.signin-page .auth-bubble:nth-child(4) {
    --bubble-x: 42%;
    --bubble-s: 96px;
    --bubble-dur: 31s;
    --bubble-delay: -2s;
    --drift: -35px;
}

.signin-page .auth-bubble:nth-child(5) {
    --bubble-x: 55%;
    --bubble-s: 52px;
    --bubble-dur: 22s;
    --bubble-delay: -12s;
    --drift: 22px;
}

.signin-page .auth-bubble:nth-child(6) {
    --bubble-x: 68%;
    --bubble-s: 28px;
    --bubble-dur: 14s;
    --bubble-delay: -5s;
    --drift: -10px;
}

.signin-page .auth-bubble:nth-child(7) {
    --bubble-x: 78%;
    --bubble-s: 88px;
    --bubble-dur: 28s;
    --bubble-delay: -15s;
    --drift: 40px;
}

.signin-page .auth-bubble:nth-child(8) {
    --bubble-x: 88%;
    --bubble-s: 48px;
    --bubble-dur: 20s;
    --bubble-delay: -7s;
    --drift: -25px;
}

.signin-page .auth-bubble:nth-child(9) {
    --bubble-x: 12%;
    --bubble-s: 64px;
    --bubble-dur: 24s;
    --bubble-delay: -18s;
    --drift: 32px;
}

.signin-page .auth-bubble:nth-child(10) {
    --bubble-x: 35%;
    --bubble-s: 38px;
    --bubble-dur: 17s;
    --bubble-delay: -10s;
    --drift: -15px;
}

.signin-page .auth-bubble:nth-child(11) {
    --bubble-x: 62%;
    --bubble-s: 72px;
    --bubble-dur: 29s;
    --bubble-delay: -20s;
    --drift: -42px;
}

.signin-page .auth-bubble:nth-child(12) {
    --bubble-x: 92%;
    --bubble-s: 56px;
    --bubble-dur: 23s;
    --bubble-delay: -4s;
    --drift: 18px;
}

.signin-page .auth-bubble:nth-child(13) {
    --bubble-x: 5%;
    --bubble-s: 110px;
    --bubble-dur: 34s;
    --bubble-delay: -22s;
    --drift: 45px;
}

.signin-page .auth-bubble:nth-child(14) {
    --bubble-x: 48%;
    --bubble-s: 32px;
    --bubble-dur: 15s;
    --bubble-delay: -1s;
    --drift: -8px;
}

.signin-page .auth-bubble:nth-child(15) {
    --bubble-x: 72%;
    --bubble-s: 68px;
    --bubble-dur: 27s;
    --bubble-delay: -14s;
    --drift: 15px;
}

.signin-page .auth-bubble:nth-child(16) {
    --bubble-x: 25%;
    --bubble-s: 92px;
    --bubble-dur: 30s;
    --bubble-delay: -9s;
    --drift: -30px;
}

.signin-page .auth-bubble:nth-child(17) {
    --bubble-x: 3%;
    --bubble-s: 58px;
    --bubble-dur: 21s;
    --bubble-delay: -6s;
    --drift: 24px;
}

.signin-page .auth-bubble:nth-child(18) {
    --bubble-x: 15%;
    --bubble-s: 36px;
    --bubble-dur: 16s;
    --bubble-delay: -11s;
    --drift: -14px;
}

.signin-page .auth-float-locks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.signin-page .auth-float-lock {
    position: absolute;
    bottom: -70px;
    left: var(--lock-x, 50%);
    width: var(--lock-s, 32px);
    height: var(--lock-s, 32px);
    margin-left: calc(var(--lock-s, 32px) / -2);
    color: rgba(255, 255, 255, 0.88);
    opacity: 0.55;
    filter: drop-shadow(0 0 12px rgba(165, 180, 252, 0.65));
    animation: auth-bubble-rise linear infinite;
    animation-duration: var(--lock-dur, 26s);
    animation-delay: var(--lock-delay, 0s);
    will-change: transform, opacity;
}

.signin-page .auth-float-lock svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes auth-bubble-rise {
    0% {
        transform: translate3d(0, 0, 0) scale(0.85);
        opacity: 0;
    }
    6% {
        opacity: 0.55;
    }
    94% {
        opacity: 0.4;
    }
    100% {
        transform: translate3d(var(--drift, 0), -115vh, 0) scale(1.12);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .signin-page .auth-bubble {
        animation: none;
        opacity: 0.2;
        bottom: 10%;
    }

    .signin-page .auth-float-lock {
        animation: none;
        opacity: 0.35;
        bottom: 15%;
    }
}

.signin-page .auth-scroll-area {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.signin-page .form-signin {
    margin: 0;
    width: 100%;
    flex-shrink: 0;
}

.signin-page .auth-shell {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow:
        0 4px 24px rgba(30, 27, 75, 0.12),
        0 24px 48px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.signin-page .auth-shell .card-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.88) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.signin-page .auth-shell-header h2 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1e293b;
}

.signin-page .auth-shell .card-body {
    background: transparent;
}

.signin-page .auth-shell .btn-primary {
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #0d9488 100%);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.signin-page .auth-shell .btn-primary:hover,
.signin-page .auth-shell .btn-primary:focus {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 50%, #0f766e 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.42);
    transform: translateY(-1px);
}

.signin-page .auth-shell .btn-primary:active {
    transform: translateY(0);
}

.signin-page .auth-shell a {
    color: #4f46e5;
    font-weight: 500;
}

.signin-page .auth-shell a:hover {
    color: #312e81;
}

.signin-page .auth-shell .general-form .form-control {
    border-radius: 10px;
    border-color: rgba(148, 163, 184, 0.45);
    background-color: rgba(248, 250, 252, 0.95);
}

.signin-page .auth-shell .general-form .form-control:focus {
    border-color: rgba(99, 102, 241, 0.55);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.signin-page .footer {
    position: relative;
    z-index: 1;
    background: transparent;
    border-top: none;
    color: rgba(255, 255, 255, 0.88);
}

.signin-page .footer a {
    color: #a5f3fc;
}

.signin-page .footer a:hover {
    color: #ecfeff;
}
