:root {
    --blue-950: #06245c;
    --blue-900: #083378;
    --blue-700: #0f62c9;
    --blue-500: #2789ff;
    --blue-100: #eaf4ff;
    --white: #ffffff;
    --text: #13213a;
    --muted: #65758f;
    --line: #d9e6f7;
    --shadow: 0 24px 60px rgba(6, 36, 92, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
}

a {
    color: var(--blue-700);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.login-shell,
.video-shell,
.compact-shell {
    min-height: 100vh;
}

.brand-logo {
    width: min(250px, 70vw);
    height: auto;
}

.eyebrow,
.form-kicker {
    display: block;
    color: var(--blue-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    color: var(--white);
    font-size: clamp(2.25rem, 5vw, 4.65rem);
    line-height: 1;
}

h2 {
    margin-bottom: 26px;
    color: var(--blue-950);
    font-size: 1.7rem;
}

p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.6;
}

.login-card {
    width: min(430px, 100%);
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-card label {
    display: block;
    margin: 16px 0 8px;
    color: var(--blue-950);
    font-size: 0.92rem;
    font-weight: 800;
}

.login-card input[type="email"],
.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 92px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--blue-100);
    box-shadow: none;
    color: var(--blue-900);
    font-size: 0.82rem;
}

.password-toggle:hover {
    background: #d9ebff;
    transform: translateY(-50%);
}

.password-field .password-toggle {
    transform: translateY(-50%);
}

.login-card input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(39, 137, 255, 0.13);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 26px;
}

.check-line {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: var(--muted) !important;
    font-weight: 700 !important;
}

.recover-row {
    justify-content: flex-end;
}

.form-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.form-message.success {
    border: 1px solid #b9e7ce;
    color: #126b3b;
    background: #ecfbf2;
}

.form-message.error {
    border: 1px solid #f3c6c6;
    color: #a32727;
    background: #fff0f0;
}

button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--blue-700);
    box-shadow: 0 14px 32px rgba(15, 98, 201, 0.28);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
    background: var(--blue-900);
    transform: translateY(-1px);
}

.password-field .password-toggle:hover {
    background: #d9ebff;
    transform: translateY(-50%);
}

.split-panel {
    display: grid;
    grid-template-columns: minmax(380px, 1.05fr) minmax(360px, 0.95fr);
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 56px;
    background:
        linear-gradient(140deg, rgba(6, 36, 92, 0.96), rgba(15, 98, 201, 0.88)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 34%);
}

.brand-copy {
    max-width: 620px;
}

.brand-panel .brand-logo {
    padding: 18px;
    border-radius: 8px;
    background: var(--white);
}

.form-panel {
    display: grid;
    place-items: center;
    padding: 48px;
    background: linear-gradient(180deg, var(--white), var(--blue-100));
}

.mobile-logo {
    display: none;
}

.video-shell {
    display: grid;
    grid-template-columns: minmax(420px, 1.2fr) minmax(380px, 0.8fr);
    background: var(--blue-950);
}

.video-stage {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.video-stage video,
.lidy-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 36, 92, 0.68), rgba(6, 36, 92, 0.1));
}

.floating-logo {
    position: absolute;
    top: 38px;
    left: 38px;
    width: 210px;
    padding: 14px;
    border-radius: 8px;
    background: var(--white);
}

.video-message {
    position: absolute;
    left: 46px;
    bottom: 46px;
    max-width: 560px;
}

.glass-panel {
    display: grid;
    place-items: center;
    padding: 42px;
    background: linear-gradient(180deg, var(--blue-950), var(--blue-900));
}

.glass-card {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.96);
}

.glass-card button[type="submit"],
.recover-card button[type="submit"],
.recover-focus-card button[type="submit"] {
    margin-top: 24px;
}

.recover-simple-shell,
.recover-focus-shell {
    min-height: 100vh;
}

.recover-simple-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    gap: 48px;
    padding: 58px;
    background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.recover-brand {
    max-width: 610px;
}

.recover-brand .brand-logo {
    margin-bottom: 82px;
    padding: 16px;
    border-radius: 8px;
    background: var(--white);
}

.recover-brand h1 {
    margin-top: 10px;
}

.recover-card {
    justify-self: center;
}

.recover-focus-shell {
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(6, 36, 92, 0.78), rgba(6, 36, 92, 0.92)),
        url("logo.png") center 22% / min(520px, 80vw) auto no-repeat,
        var(--blue-950);
}

.recover-focus-card {
    text-align: left;
}

.recover-logo {
    width: 180px;
    margin-bottom: 28px;
}

.card-copy {
    margin: -12px 0 20px;
    color: var(--muted);
    font-size: 0.98rem;
}

.compact-shell {
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(234, 244, 255, 0.96), rgba(255, 255, 255, 1) 48%, rgba(225, 239, 255, 0.98)),
        var(--white);
}

.top-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--blue-950);
    font-weight: 800;
}

.compact-logo {
    width: 190px;
}

.center-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.95fr) minmax(330px, 430px);
    align-items: center;
    gap: 34px;
    max-width: 1120px;
    min-height: calc(100vh - 120px);
    margin: 0 auto;
}

.lidy-card {
    display: grid;
    grid-template-rows: minmax(360px, 56vh) auto;
    overflow: hidden;
    border-radius: 8px;
    background: var(--blue-950);
    box-shadow: var(--shadow);
}

.lidy-card > div {
    padding: 28px;
}

.lidy-card h1 {
    margin: 8px 0 0;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.compact-card {
    box-shadow: 0 18px 50px rgba(6, 36, 92, 0.13);
}

.compact-card button {
    margin-top: 24px;
}

.center-link {
    display: block;
    margin-top: 18px;
    text-align: center;
}

@media (max-width: 900px) {
    .split-panel,
    .video-shell,
    .center-grid,
    .recover-simple-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .form-panel,
    .glass-panel {
        min-height: 100vh;
        padding: 26px;
    }

    .mobile-logo {
        display: block;
        width: min(220px, 72vw);
        margin-bottom: 24px;
    }

    .mobile-logo img {
        width: 100%;
    }

    .video-stage {
        min-height: 46vh;
    }

    .floating-logo {
        width: 165px;
        top: 22px;
        left: 22px;
    }

    .video-message {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }

    .compact-shell {
        padding: 22px;
    }

    .top-brand {
        gap: 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .center-grid {
        min-height: auto;
        padding: 34px 0;
    }

    .lidy-card {
        grid-template-rows: minmax(280px, 48vh) auto;
    }

    .recover-simple-shell {
        gap: 26px;
        padding: 30px 24px;
    }

    .recover-brand .brand-logo {
        margin-bottom: 34px;
    }
}

@media (max-width: 520px) {
    .login-card {
        padding: 28px 22px;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
    }

    h2 {
        font-size: 1.45rem;
    }
}
