:root {
    --white: #FFFFFF;
    --text-light: #FFFFFF;
    --gray: #676F9D;
    --dark: #2D3250;
    --secondary: #424769;
    --accent: #F9B17A;
    --danger: #ffb4b4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--dark);
    color: var(--white);
    font-family: "Inter", sans-serif;
}

.background-wrapper {
    position: fixed;
    z-index: 0;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.bg-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.08) brightness(0.92);
    transition: opacity 1.5s ease-in-out;
}

.bg-layer.active {
    opacity: 1;
}

.split-container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

.left-panel {
    width: 60%;
    background: linear-gradient(to right, transparent 88%, rgba(45, 50, 80, 0.38));
}

.right-panel {
    display: flex;
    width: 40%;
    min-width: 430px;
    align-items: center;
    justify-content: center;
    padding: 48px 40px 100px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(45, 50, 80, 0.82);
    text-align: center;
    backdrop-filter: blur(9px);
}

.content {
    width: 100%;
    max-width: 420px;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 17px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: var(--text-light);
    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.title-split {
    margin-bottom: 14px;
    font-family: "Inter", sans-serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 700;
    line-height: 0.98;
    text-transform: uppercase;
}

.intro-text {
    max-width: 360px;
    margin: 0 auto 28px;
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.55;
}

.login-box {
    width: 100%;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(66, 71, 105, 0.78);
    box-shadow: 0 15px 35px rgba(45, 50, 80, 0.25);
    backdrop-filter: blur(5px);
}

.login-header {
    margin-bottom: 28px;
}

.login-header h2 {
    font-family: "Inter", sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-header p,
.install-area p {
    margin-top: 7px;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 300;
}

.input-line {
    position: relative;
    margin-bottom: 30px;
    text-align: left;
}

.input-line input {
    width: 100%;
    padding: 11px 0 8px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    outline: 0;
    background: transparent;
    color: var(--white);
    font: 1rem "Inter", sans-serif;
    transition: border-color 0.25s;
}

.input-line input:focus {
    border-bottom-color: var(--white);
}

.input-line label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.25s ease;
}

.input-line input:focus + label,
.input-line input:valid + label {
    top: -13px;
    color: var(--white);
    font-size: 0.7rem;
    letter-spacing: 0.8px;
}

.btn-login {
    width: 100%;
    margin-bottom: 18px;
    padding: 13px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: var(--dark);
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.btn-login:hover,
.btn-login:focus-visible {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.install-area {
    min-height: 44px;
}

.install-link {
    margin-top: 5px;
    padding: 2px 0;
    border: 0;
    border-bottom: 1px solid var(--white);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font: 500 0.86rem "Inter", sans-serif;
    letter-spacing: 0.6px;
}

.ios-instructions,
.installed-message {
    line-height: 1.45;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.logo-white {
    width: min(210px, 65%);
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.9;
    transition: transform 0.25s ease;
}

.logo-white:hover {
    transform: scale(1.04);
}

.marquee-bottom {
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(45, 50, 80, 0.94);
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    width: max-content;
    color: rgba(255, 255, 255, 0.5);
    font: 500 0.7rem "Inter", sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    will-change: transform;
    animation: scroll-left 24s linear infinite;
}

.marquee-group {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    min-width: 100vw;
    align-items: center;
}

.marquee-group span {
    display: flex;
    flex-shrink: 0;
    position: relative;
    width: clamp(280px, 25vw, 380px);
    align-items: center;
    justify-content: center;
    text-align: center;
}

.marquee-group span::after {
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.24);
    content: "•";
    transform: translateX(50%);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .left-panel {
        width: 48%;
    }

    .right-panel {
        width: 52%;
        min-width: 400px;
        padding-inline: 28px;
    }
}

@media (max-width: 700px) {
    .background-wrapper {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: none;
    }

    .split-container {
        display: block;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
        min-width: 0;
        min-height: 100vh;
        padding: 38px 20px 90px;
        border: 0;
        background: rgba(45, 50, 80, 0.9);
    }

    .title-split {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .login-box {
        padding: 26px 22px;
    }

    .marquee-group span {
        width: 260px;
    }
}

@media (max-height: 760px) and (min-width: 701px) {
    .right-panel {
        padding-top: 24px;
        padding-bottom: 70px;
    }

    .brand-tag {
        margin-bottom: 10px;
    }

    .intro-text {
        margin-bottom: 16px;
    }

    .login-box {
        padding-block: 22px;
    }

    .login-header {
        margin-bottom: 22px;
    }

    .logo-container {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
