:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --slate-50: #f8fafc;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --blue-600: #2563eb;
    --red-700: #b91c1c;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: #172033;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    background-color: #172033;
    color: var(--slate-900);
}

button,
input {
    font: inherit;
}

.login-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    padding: clamp(20px, 4vw, 56px);
    background-color: #172033;
    isolation: isolate;
}

.login-background {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.login-page::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(15, 23, 42, 0.14);
    content: "";
}

.login-frame {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(1240px, 100%);
    min-height: min(650px, calc(100dvh - clamp(40px, 8vw, 112px)));
    grid-template-columns: minmax(470px, 47%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 34px 90px rgba(5, 15, 32, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.login-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(30px, 3.8vw, 50px);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(248, 250, 252, 0.64);
    box-shadow: 18px 0 58px rgba(15, 23, 42, 0.09), inset -1px 0 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(22px) saturate(118%);
    -webkit-backdrop-filter: blur(22px) saturate(118%);
}

.login-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 11px;
    color: var(--slate-900);
    text-decoration: none;
}

.login-brand img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.login-brand span {
    display: grid;
    gap: 1px;
}

.login-brand strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.login-brand small {
    color: var(--slate-600);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-content {
    width: min(100%, 410px);
    margin: auto 0;
    padding: 36px 0;
}

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

.login-heading h1 {
    margin: 0;
    font-size: clamp(38px, 3.5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.052em;
    line-height: 1;
}

.login-heading span {
    display: block;
    margin-top: 11px;
    color: var(--slate-700);
    font-size: 14px;
    line-height: 1.55;
}

.login-alert {
    margin: -5px 0 18px;
    border: 1px solid #fecaca;
    border-radius: 13px;
    background: rgba(254, 242, 242, 0.9);
    color: var(--red-700);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    padding: 12px 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

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

.login-form label > span {
    color: var(--slate-900);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.005em;
}

.login-form label > span small {
    color: var(--slate-600);
    font-size: 10px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    height: 58px;
    border: 1px solid rgba(71, 85, 105, 0.24);
    border-radius: 15px;
    outline: 0;
    background: rgba(255, 255, 255, 0.78);
    color: var(--slate-900);
    font-size: 16px;
    font-weight: 500;
    padding: 0 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 9px 22px rgba(15, 23, 42, 0.075);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.login-form input:hover {
    border-color: rgba(71, 85, 105, 0.42);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 12px 26px rgba(15, 23, 42, 0.09);
}

.login-form input:focus {
    border-color: var(--blue-600);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13), 0 14px 28px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.login-form input[aria-invalid="true"] {
    border-color: #fca5a5;
}

.login-form button {
    display: inline-flex;
    width: 100%;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    border: 1px solid rgba(76, 123, 210, 0.76);
    border-radius: 16px;
    background: #123f88;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -4px 0 rgba(6, 28, 68, 0.27), 0 17px 32px rgba(18, 63, 136, 0.29);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.018em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.login-form button:hover:not(:disabled) {
    background: #174d9e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -4px 0 rgba(6, 28, 68, 0.2), 0 22px 40px rgba(18, 63, 136, 0.35);
    transform: translateY(-2px);
}

.login-form button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.login-form button:active:not(:disabled) {
    box-shadow: inset 0 2px 6px rgba(6, 28, 68, 0.24), 0 9px 18px rgba(18, 63, 136, 0.22);
    transform: translateY(1px);
}

.login-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.activation-page {
    overflow: auto;
}

.activation-frame {
    min-height: min(790px, calc(100dvh - clamp(32px, 7vw, 84px)));
}

.activation-panel {
    padding-block: clamp(26px, 3vw, 40px);
}

.activation-content {
    width: min(100%, 440px);
    padding: 24px 0 12px;
}

.activation-heading {
    margin-bottom: 20px;
}

.activation-heading h1 {
    font-size: clamp(34px, 3.2vw, 43px);
}

.activation-form {
    gap: 11px;
}

.activation-form input,
.activation-form button {
    height: 49px;
    border-radius: 13px;
}

.activation-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.login-secondary-link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #123f88;
    color: #ffffff;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.login-image {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 30px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 18px 0 66px rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(3.5px) saturate(112%);
    -webkit-backdrop-filter: blur(3.5px) saturate(112%);
    will-change: backdrop-filter;
}

.login-showcase {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(5, 15, 32, 0.58), 0 1px 2px rgba(5, 15, 32, 0.5);
}

.login-logatik-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 18px rgba(5, 15, 32, 0.2));
}

.login-showcase span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.018em;
    white-space: nowrap;
}

.login-showcase strong {
    font-weight: 800;
}

.login-mobile-credit {
    display: none;
}

@media (max-width: 980px) {
    .login-page {
        padding: 26px;
    }

    .login-frame {
        min-height: min(630px, calc(100dvh - 52px));
        grid-template-columns: minmax(410px, 55%) minmax(0, 1fr);
    }

    .login-panel {
        padding: 38px;
    }

    .login-image {
        padding: 24px;
    }

    .login-logatik-logo {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 720px) {
    .login-page {
        align-items: center;
        overflow: auto;
        padding: 16px;
    }

    .login-page::before {
        background: rgba(15, 23, 42, 0.22);
    }

    .login-frame {
        display: block;
        min-height: 0;
        border-radius: 25px;
    }

    .login-panel {
        min-height: min(620px, calc(100dvh - 32px));
        border-right: 0;
        border-radius: 24px;
        background: rgba(248, 250, 252, 0.8);
        padding: 26px;
    }

    .login-content {
        padding: 36px 0 16px;
    }

    .login-heading {
        margin-bottom: 26px;
    }

    .login-heading h1 {
        font-size: 39px;
    }

    .login-image {
        display: none;
    }

    .activation-panel {
        min-height: min(760px, calc(100dvh - 32px));
    }

    .activation-content {
        padding-top: 28px;
    }

    .login-mobile-credit {
        display: flex;
        width: fit-content;
        align-items: center;
        align-self: flex-end;
        gap: 8px;
        margin-top: 20px;
        margin-left: auto;
        color: var(--slate-600);
        font-size: 10px;
        letter-spacing: 0.035em;
    }

    .login-mobile-credit img {
        width: 24px;
        height: 24px;
        opacity: 0.7;
        filter: invert(1);
    }

    .login-mobile-credit strong {
        color: var(--slate-800);
        font-weight: 800;
    }
}

@media (max-width: 420px) {
    .login-brand img {
        width: 40px;
        height: 40px;
    }

    .login-panel {
        padding: 23px 21px;
    }

    .login-content {
        padding-top: 32px;
    }

    .login-form input,
    .login-form button {
        height: 56px;
    }

    .activation-name-row {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 760px) and (min-width: 721px) {
    .login-page {
        overflow: auto;
        padding-block: 16px;
    }

    .login-frame {
        min-height: min(600px, calc(100dvh - 32px));
    }

    .login-panel {
        padding-block: 28px;
    }

    .login-content {
        padding-block: 18px;
    }

    .login-heading {
        margin-bottom: 20px;
    }

    .login-alert {
        margin-bottom: 14px;
    }

    .login-form {
        gap: 13px;
    }

    .login-form input,
    .login-form button {
        height: 54px;
    }
}

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

    [data-photo-focus] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
