﻿:root {
    --signin-font: "Inter", "Segoe UI", sans-serif;
    --signin-display: "Space Grotesk", "Inter", sans-serif;
    --signin-ink: #f8fafc;
    --signin-accent: #dc1414;
    --signin-error: #fda4af;
    --signin-error-bg: rgba(220, 20, 20, 0.16);
    --signin-error-border: rgba(220, 20, 20, 0.35);
    --signin-radius: 1.75rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body.signin-page,
#logoBackground {
    font-family: var(--signin-font);
    color: var(--signin-ink);
    background: #000;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

#logoBackground form,
.signin-page form {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

.signin-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.signin-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.signin-bg-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    opacity: 0;
    transition: opacity 0.7s ease;
}

.signin-bg-video.is-ready {
    opacity: 1;
}

.signin-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.28);
}

.signin-layout {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.signin-visual {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 24px 28px;
    color: #fff;
}

.loginLeft {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 760px;
}

.signin-copy {
    width: 100%;
    margin-bottom: 36px;
    text-align: left;
    animation: login2-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.signin-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 14px;
    border: 1px solid rgba(220, 20, 20, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.signin-eyebrow i {
    font-size: 14px;
    line-height: 1;
    color: var(--signin-accent);
}

.loginLeft h1,
.signin-copy h1 {
    margin: 0 0 16px;
    font-family: var(--signin-display);
    font-size: clamp(1.7rem, 3.4vw, 2.85rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
}

.signin-accent {
    display: inline-block;
    color: var(--signin-accent);
    font-weight: 600;
    animation: login2-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.loginLeft p,
.signin-copy p {
    margin: 0;
    max-width: 34rem;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.loginLeft p strong {
    color: var(--signin-accent);
    font-weight: 600;
}

.signin-modules {
    width: 100%;
    animation: login2-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.signin-modules-kicker {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin: 0 0 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.signin-modules-kicker::before {
    content: "";
    height: 1px;
    width: 48px;
    background: linear-gradient(90deg, transparent, #dc1414);
}

.signin-modules-kicker::after {
    content: none;
}

.signin-modules-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.signin-module {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 108px;
    min-width: 108px;
    max-width: 132px;
    min-height: 118px;
    padding: 18px 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(10, 10, 10, 0.18)), rgba(10, 10, 10, 0.18);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    animation: login2-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.signin-module:nth-child(1) { animation-delay: 0.5s; }
.signin-module:nth-child(2) { animation-delay: 0.56s; }
.signin-module:nth-child(3) { animation-delay: 0.62s; }
.signin-module:nth-child(4) { animation-delay: 0.68s; }
.signin-module:nth-child(5) { animation-delay: 0.74s; }

.signin-module:hover {
    transform: translateY(-6px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(10, 10, 10, 0.14)), rgba(10, 10, 10, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 18px 36px -12px rgba(220, 20, 20, 0.35);
}

.signin-module::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #dc1414 20%, #ff4d4d 50%, #dc1414 80%, transparent);
    box-shadow: 0 0 14px rgba(220, 20, 20, 0.65);
    animation: login2-inner-glow 2.8s ease-in-out infinite;
}

.signin-module::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-130%) skewX(-18deg);
    animation: login2-card-sheen 4.8s ease-in-out infinite;
    pointer-events: none;
}

.signin-module:nth-child(2)::after { animation-delay: 0.35s; }
.signin-module:nth-child(3)::after { animation-delay: 0.7s; }
.signin-module:nth-child(4)::after { animation-delay: 1.05s; }
.signin-module:nth-child(5)::after { animation-delay: 1.4s; }

.signin-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 1.45rem;
    animation: signin-icon-float 3.2s ease-in-out infinite;
}

.signin-module:nth-child(2) .signin-module-icon { animation-delay: 0.25s; }
.signin-module:nth-child(3) .signin-module-icon { animation-delay: 0.5s; }
.signin-module:nth-child(4) .signin-module-icon { animation-delay: 0.75s; }
.signin-module:nth-child(5) .signin-module-icon { animation-delay: 1s; }

.signin-module:hover .signin-module-icon {
    background: rgba(220, 20, 20, 0.2);
}

.signin-module-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.signin-panel {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 72px;
}

.signin-beam {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 420px;
    animation: login2-card-float 6.5s ease-in-out infinite;
}

.signin-beam::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -14%;
    height: 48%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(220, 20, 20, 0.42) 0%, rgba(220, 20, 20, 0.08) 48%, transparent 72%);
    filter: blur(22px);
    pointer-events: none;
    z-index: 0;
    animation: login2-card-glow 4.8s ease-in-out infinite;
}

.loginForm,
.signin-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 32px 32px 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--signin-radius);
    background:
        radial-gradient(120% 42% at 50% -8%, rgba(255, 255, 255, 0.08), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
        linear-gradient(180deg, rgba(12, 12, 14, 0.58), rgba(8, 8, 10, 0.44));
    backdrop-filter: blur(26px) saturate(165%);
    -webkit-backdrop-filter: blur(26px) saturate(165%);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 30px 90px -28px rgba(0, 0, 0, 0.85),
        0 0 36px -12px rgba(220, 20, 20, 0.22);
    animation: login2-scale-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.signin-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
}

.signin-brand .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.signin-logo {
    display: block;
    max-height: 48px;
    width: auto;
    max-width: 220px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    mix-blend-mode: lighten;
}

.signin-kicker {
    margin: 20px 0 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.signin-header {
    margin-bottom: 24px;
    text-align: center;
}

.loginForm h4,
.signin-header h4 {
    margin: 0;
    padding: 0;
    font-family: var(--signin-display);
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    border: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.signin-alert {
    display: none;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--signin-error-border);
    background: var(--signin-error-bg);
    color: var(--signin-error);
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 600;
}

.signin-alert:not(:empty) {
    display: block;
}

.signin-field {
    margin-bottom: 16px;
}

.signin-label,
.loginForm label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.signin-input-wrap,
.filledicon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.signin-input-wrap:hover,
.filledicon:hover {
    border-color: rgba(255, 255, 255, 0.38);
}

.signin-input-wrap:focus-within,
.filledicon:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.signin-input-wrap.is-invalid {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(220, 20, 20, 0.16);
}

.signin-input-icon,
.filledicon span {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    pointer-events: none;
    z-index: 1;
    color: #fff;
}

.signin-input-icon i,
.filledicon span i {
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
}

.signin-input-icon img,
.filledicon span img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.signin-input-wrap:focus-within .signin-input-icon,
.filledicon:focus-within span,
.signin-input-wrap:focus-within .signin-input-icon i,
.filledicon:focus-within span i {
    color: #fff;
    opacity: 1;
}

.signin-input,
.loginForm input[type="text"],
.loginForm input[type="password"] {
    width: 100%;
    height: 52px;
    margin: 0;
    border: 0;
    border-radius: 16px;
    outline: none;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.925rem;
    color: #fff;
    padding: 10px 46px 10px 48px;
}

.signin-input::placeholder,
.loginForm input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.signin-input:focus {
    outline: none;
    box-shadow: none;
}

.signin-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    z-index: 2;
    cursor: pointer;
}

.signin-password-toggle:hover,
.signin-password-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.signin-password-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 1px;
}

.signin-password-toggle i {
    font-size: 1.35rem;
    line-height: 1;
}

.signin-field-error {
    margin-top: 6px;
    color: #fda4af !important;
    font-size: 0.8125rem;
    line-height: 1.35;
    font-weight: 600;
}

.signin-field-error:not([style*="display:none"]) {
    display: block;
}

.loginBnt,
.signin-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 12px 16px;
    border: 1px solid #dc1414;
    border-radius: 16px;
    background: #dc1414;
    color: #fff !important;
    font-family: inherit;
    font-size: 0.925rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 14px 36px -12px rgba(220, 20, 20, 0.45), 0 8px 20px -8px rgba(0, 0, 0, 0.35);
}

.loginBnt:hover,
.signin-submit:hover,
.signin-submit:focus {
    background: #000;
    border-color: #000;
    color: #fff !important;
    box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.55);
}

.signin-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.signin-submit.is-loading {
    pointer-events: none;
    cursor: wait;
    opacity: 0.7;
}

.signin-submit-busy {
    display: none;
    align-items: center;
    gap: 8px;
}

.signin-submit.is-loading .signin-submit-text {
    display: none;
}

.signin-submit.is-loading .signin-submit-busy {
    display: inline-flex;
}

.signin-submit-text i {
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 4px;
    vertical-align: middle;
}

.signin-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: signin-spin 0.7s linear infinite;
}

.signin-footer,
footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    text-align: center;
}

.signin-footer img,
footer img {
    height: 16px;
    width: auto;
    margin-left: 4px;
    vertical-align: middle;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1c inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    transition: background-color 9999s ease-out;
}

@media (min-width: 992px) {
    .signin-layout {
        flex-direction: row;
    }

    .signin-visual {
        width: 56%;
        align-items: flex-start;
        padding: 48px 40px 48px 48px;
    }

    .signin-panel {
        width: 44%;
        padding: 48px 40px 72px 16px;
    }

    .loginLeft {
        max-width: 760px;
    }
}

@media (max-width: 991.98px) {
    .signin-visual {
        min-height: auto;
        padding: 48px 20px 16px;
    }

    .signin-panel {
        min-height: auto;
        padding: 12px 16px 72px;
    }

    .loginForm,
    .signin-card {
        padding: 28px 22px 24px;
    }
}

@media (max-width: 575.98px) {
    .signin-visual {
        padding: 36px 16px 8px;
    }

    .signin-panel {
        padding: 8px 16px 64px;
    }

    .loginLeft h1,
    .signin-copy h1 {
        font-size: 1.55rem;
    }

    .signin-header h4 {
        font-size: 1.05rem;
    }

    .signin-module {
        flex: 1 1 calc(50% - 12px);
        max-width: none;
    }

    .signin-input,
    .loginBnt,
    .signin-submit {
        min-height: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .signin-copy,
    .signin-accent,
    .signin-modules,
    .signin-module,
    .signin-module::before,
    .signin-module::after,
    .signin-module-icon,
    .signin-beam,
    .signin-beam::before,
    .signin-card,
    .signin-bg-video,
    .signin-spinner {
        animation: none !important;
        transition: none !important;
    }

    .signin-bg-video {
        display: none;
    }
}

@keyframes signin-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes login2-fade-up {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login2-scale-in {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes login2-card-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes login2-card-glow {
    0%,
    100% {
        opacity: 0.42;
        transform: scale(0.94);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.08);
    }
}

@keyframes login2-card-sheen {
    0%,
    28% {
        transform: translateX(-130%) skewX(-18deg);
    }
    58%,
    100% {
        transform: translateX(230%) skewX(-18deg);
    }
}

@keyframes login2-inner-glow {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes signin-icon-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
