/* DANTECH LOGIN MINIMAL PREMIUM */

html {
    min-height: 100%;
}

body.login-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    isolation: isolate;
    color: var(--dt-text);
    color-scheme: dark;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 183, 255, .18), transparent 28%),
        radial-gradient(circle at 82% 82%, rgba(0, 87, 255, .22), transparent 34%),
        linear-gradient(180deg, rgba(2, 7, 17, .78), rgba(3, 9, 19, .94)),
        url("/static/img/login-dantech-poster.jpg") center center / cover no-repeat fixed;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 7, 17, .18), rgba(2, 7, 17, .54) 64%, rgba(2, 7, 17, .84)),
        radial-gradient(circle at center, transparent 42%, rgba(2, 7, 17, .24) 68%, rgba(2, 7, 17, .66) 100%);
}

body.login-video-failed::before {
    background:
        linear-gradient(180deg, rgba(2, 7, 17, .24), rgba(2, 7, 17, .60) 64%, rgba(2, 7, 17, .88)),
        radial-gradient(circle at center, transparent 38%, rgba(2, 7, 17, .30) 70%, rgba(2, 7, 17, .74) 100%);
}

.login-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    filter: saturate(1.16) contrast(1.08) brightness(.58);
    transition: opacity .6s ease, filter .6s ease, transform .6s ease;
}

body.login-video-loaded .login-bg-video {
    opacity: .92;
}

body.login-video-failed .login-bg-video,
body.login-motion-reduced .login-bg-video {
    opacity: 0;
    filter: none;
    transform: none;
}

.login-stage__overlay {
    position: absolute;
    inset: 0;
}

.login-stage__overlay--glow {
    background:
        radial-gradient(circle at 16% 18%, rgba(0, 183, 255, .24), transparent 26%),
        radial-gradient(circle at 78% 84%, rgba(0, 87, 255, .20), transparent 30%),
        radial-gradient(circle at 52% 54%, rgba(56, 189, 248, .07), transparent 62%);
    mix-blend-mode: screen;
    opacity: .92;
}

.login-stage__overlay--scan {
    background: repeating-linear-gradient(
        180deg,
        rgba(125, 220, 255, .08) 0 1px,
        transparent 1px 7px
    );
    opacity: .11;
    animation: login-scan 18s linear infinite;
}

.login-stage__overlay--vignette {
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(2, 7, 17, .14) 60%,
        rgba(2, 7, 17, .82) 100%
    );
}

.login-stage__overlay--noise {
    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: .05;
    mix-blend-mode: soft-light;
}

.login-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: center;
    justify-items: start;
    padding:
        clamp(10px, 1.5vw, 20px)
        clamp(14px, 4vw, 32px)
        clamp(14px, 2vw, 26px)
        clamp(36px, 5.2vw, 96px);
}

.login-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 25% 50%, rgba(0, 183, 255, .10), transparent 22%),
        linear-gradient(
            90deg,
            rgba(2, 7, 17, .74) 0%,
            rgba(2, 7, 17, .62) 24%,
            rgba(2, 7, 17, .34) 44%,
            rgba(2, 7, 17, 0) 66%
        );
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100% - 20px));
    justify-self: start;
    align-self: center;
    padding: 20px 20px 16px;
    display: grid;
    gap: 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(7, 13, 25, .30), rgba(8, 16, 30, .20));
    border: 1px solid rgba(103, 232, 249, .14);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .03);
    backdrop-filter: blur(14px) saturate(122%);
    -webkit-backdrop-filter: blur(14px) saturate(122%);
    opacity: 0;
    transform: translateY(14px) scale(.986);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

body.login-ready .login-shell {
    opacity: 1;
    transform: translateY(-4px) scale(1);
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at top center, rgba(103, 232, 249, .06), transparent 42%);
}

.login-shell::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .05);
}

.login-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.login-brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
    padding-inline: 2px;
}

.login-brand-mark {
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    display: block;
    filter:
        drop-shadow(0 14px 24px rgba(0, 0, 0, .32))
        drop-shadow(0 0 18px rgba(0, 183, 255, .18));
    animation: login-logo-glow 6.5s ease-in-out infinite;
}

.login-brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    text-align: left;
}

.login-brand-name {
    margin: 0;
    color: #fff;
    font-size: clamp(1.56rem, 2.15vw, 1.96rem);
    line-height: .96;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #F7FBFF 0%, #CDEEFF 38%, #67E8F9 74%, #EAFBFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(0, 183, 255, .10);
    white-space: nowrap;
}

.login-brand-umi {
    margin: 0;
    color: rgba(185, 212, 236, .74);
    font-size: .66rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .38em;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-panel h2 {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: clamp(1.38rem, 2.1vw, 1.74rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -.05em;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 59, 92, .10);
    border: 1px solid rgba(255, 59, 92, .24);
    color: #ffd7df;
    font-weight: 700;
    line-height: 1.45;
    font-size: .94rem;
}

.login-alert-icon {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 59, 92, .18);
    border: 1px solid rgba(255, 59, 92, .28);
}

.login-alert-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    width: 2px;
    height: 7px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #ffd7df;
}

.login-alert-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 2px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #ffd7df;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-field {
    display: grid;
    gap: 6px;
}

.login-field label {
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(183, 210, 236, .78);
}

.login-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 12px 0 11px;
    border-radius: 15px;
    border: 1px solid rgba(103, 232, 249, .16);
    background: linear-gradient(180deg, rgba(7, 18, 34, .78), rgba(10, 22, 39, .62));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 0 0 0 rgba(47, 156, 255, 0);
    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.login-control:hover {
    border-color: rgba(103, 232, 249, .24);
}

.login-control:focus-within {
    border-color: rgba(103, 232, 249, .76);
    box-shadow:
        0 0 0 4px rgba(0, 183, 255, .12),
        0 10px 26px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .05);
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(8, 21, 40, .90), rgba(10, 28, 51, .76));
}

.login-control-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(5, 18, 35, .94), rgba(9, 28, 52, .84));
    border: 1px solid rgba(103, 232, 249, .16);
    flex: 0 0 auto;
}

.login-control-icon--user::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 10px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, #67E8F9, #2F9CFF);
    box-shadow: 0 0 12px rgba(0, 183, 255, .34);
}

.login-control-icon--user::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 16px;
    height: 9px;
    transform: translateX(-50%);
    border: 2px solid rgba(103, 232, 249, .85);
    border-top: 0;
    border-radius: 0 0 999px 999px;
}

.login-control-icon--password::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 11px;
    width: 16px;
    height: 11px;
    transform: translateX(-50%);
    border: 2px solid rgba(103, 232, 249, .82);
    border-radius: 3px;
}

.login-control-icon--password::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 23px;
    width: 5px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(103, 232, 249, .92);
    box-shadow: 0 -6px 0 0 rgba(103, 232, 249, .92);
}

.login-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--dt-text);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
}

.login-input::placeholder {
    color: rgba(148, 168, 196, .70);
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--dt-text);
    -webkit-box-shadow: 0 0 0px 1000px rgba(7, 18, 34, .92) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #0057FF 0%, #008CFF 45%, #29C7FF 100%);
    background-size: 180% 180%;
    background-position: 0% 50%;
    color: #fff;
    font-size: .98rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow:
        0 14px 28px rgba(0, 87, 255, .24),
        0 0 0 1px rgba(103, 232, 249, .18) inset;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease,
        background-position .22s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 32px rgba(0, 87, 255, .36),
        0 0 24px rgba(0, 183, 255, .22),
        0 0 0 1px rgba(103, 232, 249, .30) inset;
    filter: brightness(1.04);
    background-position: 100% 50%;
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(0, 183, 255, .16),
        0 16px 32px rgba(0, 87, 255, .36),
        0 0 0 1px rgba(103, 232, 249, .30) inset;
}

.login-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
    color: rgba(183, 210, 236, .68);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
}

.login-legal {
    margin-top: 2px;
    color: rgba(183, 210, 236, .54);
    font-size: .62rem;
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: .02em;
    text-align: center;
}

@keyframes login-scan {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(24px);
    }
}

@keyframes login-logo-glow {
    0%,
    100% {
        transform: translateY(0);
        filter:
            drop-shadow(0 14px 26px rgba(0, 0, 0, .28))
            drop-shadow(0 0 16px rgba(0, 183, 255, .16));
    }

    50% {
        transform: translateY(-1px);
        filter:
            drop-shadow(0 18px 30px rgba(0, 0, 0, .32))
            drop-shadow(0 0 22px rgba(0, 183, 255, .24));
    }
}

@media (max-width: 980px) {
    .login-content {
        justify-items: start;
        padding: 14px clamp(16px, 4vw, 36px) 14px clamp(18px, 4vw, 40px);
    }

    .login-shell {
        justify-self: start;
        width: min(430px, calc(100% - 20px));
    }
}

@media (max-width: 600px) {
    body.login-page {
        background-attachment: scroll;
    }

    .login-content {
        justify-items: center;
        padding: 12px;
    }

    .login-content::before {
        background:
            linear-gradient(180deg, rgba(2, 7, 17, .56), rgba(2, 7, 17, .72));
    }

    .login-shell {
        width: 100%;
        padding: 18px 16px 14px;
        border-radius: 22px;
        justify-self: center;
    }

    .login-shell::after {
        border-radius: 21px;
    }

    .login-brand-lockup {
        gap: 11px;
        margin-bottom: 4px;
    }

    .login-brand-mark {
        width: 52px;
        height: 52px;
    }

    .login-brand-name {
        font-size: 1.34rem;
        letter-spacing: .08em;
    }

    .login-brand-umi {
        font-size: .6rem;
        letter-spacing: .32em;
    }

    .login-stage__overlay--scan {
        display: none;
    }
}

@media (max-width: 420px) {
    .login-shell {
        width: 100%;
    }

    .login-panel h2 {
        font-size: 1.35rem;
    }

    .login-control {
        min-height: 46px;
    }

    .login-input {
        height: 46px;
    }

    .login-submit {
        min-height: 48px;
    }

    .login-legal {
        font-size: .60rem;
        line-height: 1.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-stage__overlay--scan,
    .login-brand-mark {
        animation: none;
    }

    .login-shell,
    .login-control,
    .login-submit,
    .login-bg-video {
        transition: none;
    }
}
