:root {
    --ac-ink: #122033;
    --ac-muted: #63718a;
    --ac-line: #d9e4ef;
    --ac-panel: #ffffff;
    --ac-teal: #13979a;
    --ac-teal-dark: #0f747c;
    --ac-navy: #132b45;
    --ac-red: #d71920;
    --ac-soft: #eef7f8;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.ac-login-page {
    min-height: 100vh;
    margin: 0;
    color: var(--ac-ink);
    background: #f4f7fb;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

.ac-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    background: #fff;
}

.ac-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background: #0f2a38;
}

.ac-visual__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.02) contrast(1.02);
}

.ac-visual__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 25, 39, .94) 0%, rgba(14, 83, 93, .72) 52%, rgba(22, 143, 146, .35) 100%),
        linear-gradient(0deg, rgba(8, 32, 42, .82) 0%, rgba(8, 32, 42, .05) 58%);
}

.ac-visual__top,
.ac-visual__content,
.ac-visual__features { position: relative; z-index: 1; }

.ac-visual__top {
    padding: 42px 38px;
}

.ac-brand-pill {
    width: fit-content;
    min-height: 54px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(12, 33, 48, .54);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .14);
}

.ac-brand-pill img { width: 112px; height: auto; object-fit: contain; }
.ac-brand-pill span { color: #fff; font-weight: 900; font-size: 14px; white-space: nowrap; }

.ac-visual__content {
    position: absolute;
    left: 38px;
    bottom: 164px;
    width: min(660px, calc(100% - 76px));
}

.ac-kicker {
    width: fit-content;
    margin-bottom: 20px;
    padding: 7px 12px;
    display: inline-flex;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ac-visual h1 {
    max-width: 610px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: 0;
}

.ac-visual p {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.7;
}

.ac-visual__features {
    position: absolute;
    left: 38px;
    right: 38px;
    bottom: 52px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    gap: 10px;
}

.ac-visual__features div {
    min-height: 58px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(14px);
}

.ac-visual__features i { font-size: 20px; }
.ac-visual__features span { color: #fff; font-size: 13px; font-weight: 850; }

.ac-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 48px clamp(54px, 7vw, 118px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ac-auth__inner { width: min(100%, 520px); }

.ac-auth__brand {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ac-auth__brand img { width: 148px; height: auto; object-fit: contain; }
.ac-auth__brand span {
    padding: 7px 10px;
    border-radius: 8px;
    color: #0f6d78;
    background: #e8f5f6;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}

.ac-auth__heading h2 {
    margin: 0 0 10px;
    color: var(--ac-ink);
    font-size: 36px;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: 0;
}

.ac-auth__heading p {
    margin: 0 0 30px;
    color: var(--ac-muted);
    font-size: 15px;
    line-height: 1.6;
}

.ac-form { display: grid; gap: 18px; }
.ac-field label { display: block; margin-bottom: 8px; color: var(--ac-ink); font-size: 13px; font-weight: 900; }

.ac-input {
    min-height: 56px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--ac-line);
    border-radius: 6px;
    background: #eef5ff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ac-input:focus-within {
    border-color: rgba(19, 151, 154, .62);
    box-shadow: 0 0 0 4px rgba(19, 151, 154, .12);
}

.ac-input > i {
    width: 45px;
    flex: 0 0 45px;
    color: #71809a;
    text-align: center;
    font-size: 20px;
}

.ac-input input {
    width: 100%;
    min-width: 0;
    height: 56px;
    border: 0;
    outline: 0;
    color: var(--ac-ink);
    background: transparent;
    font-size: 15px;
    font-weight: 750;
}

.ac-input input::placeholder { color: #8795aa; font-weight: 500; }

.ac-input .toggle-password {
    width: 54px;
    height: 56px;
    flex: 0 0 54px;
    border: 0;
    border-left: 1px solid var(--ac-line);
    color: #68768c;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
}

.ac-input .toggle-password:hover,
.ac-input .toggle-password:focus { color: var(--ac-teal-dark); outline: 0; }
.ac-error { display: block; margin-top: 6px; color: var(--ac-red); font-size: 12px; }

.ac-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ac-muted);
    font-size: 13px;
}

.ac-check { margin: 0; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ac-check input { width: 15px; height: 15px; accent-color: var(--ac-teal); }
.ac-options a { color: var(--ac-teal-dark); font-weight: 850; text-decoration: none; }
.ac-options a:hover { color: var(--ac-navy); }

.ac-submit {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, var(--ac-teal), var(--ac-navy));
    box-shadow: 0 18px 36px rgba(19, 83, 103, .2);
    font-size: 15px;
    font-weight: 950;
}

.ac-submit:hover,
.ac-submit:focus { filter: brightness(1.04); }

.ac-security {
    margin-top: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #b7e3e7;
    border-radius: 6px;
    color: #31556a;
    background: linear-gradient(180deg, #eefafa, #e9f6f8);
    font-size: 12px;
    font-weight: 800;
}

.ac-security i { color: var(--ac-teal-dark); font-size: 18px; }
.ac-footer { margin: 32px 0 0; color: #7a87a0; text-align: center; font-size: 12px; }

@media (min-width: 1400px) {
    .ac-auth__inner { width: min(100%, 560px); }
}

@media (max-width: 1100px) {
    .ac-shell { grid-template-columns: .94fr 1.06fr; }
    .ac-auth { padding: 38px 58px; }
    .ac-visual__content { bottom: 146px; }
    .ac-visual h1 { font-size: 42px; }
    .ac-visual__features { grid-template-columns: 1fr; max-width: 260px; }
}

@media (max-width: 820px) {
    .ac-shell { grid-template-columns: minmax(270px, .85fr) minmax(350px, 1.15fr); }
    .ac-visual__top { padding: 30px 24px; }
    .ac-brand-pill span, .ac-visual p, .ac-visual__features { display: none; }
    .ac-brand-pill img { width: 104px; }
    .ac-visual__content { left: 24px; bottom: 64px; width: calc(100% - 48px); }
    .ac-visual h1 { font-size: 32px; }
    .ac-auth { padding: 28px 34px; }
}

@media (max-width: 640px) {
    .ac-shell { display: block; min-height: 100vh; background: #f5f8fb; }
    .ac-visual { min-height: 260px; }
    .ac-visual__content { bottom: 42px; }
    .ac-auth { min-height: auto; margin: -34px 16px 0; padding: 28px 22px; position: relative; z-index: 2; border: 1px solid var(--ac-line); border-radius: 8px; box-shadow: 0 18px 46px rgba(15, 34, 56, .14); }
    .ac-auth__inner { width: 100%; }
}

@media (max-width: 424px) {
    body.ac-login-page { background: #f7fafc; }
    .ac-visual { display: none; }
    .ac-shell { min-height: 100vh; display: flex; align-items: center; padding: 18px; background: radial-gradient(circle at top, rgba(19, 151, 154, .11), transparent 260px), #f7fafc; }
    .ac-auth { width: 100%; min-height: auto; margin: 0; padding: 28px 18px 22px; border-radius: 8px; background: #fff; }
    .ac-auth__brand { justify-content: center; flex-wrap: wrap; }
    .ac-auth__brand img { width: 136px; }
    .ac-auth__heading { text-align: center; }
    .ac-auth__heading h2 { font-size: 27px; }
    .ac-options { flex-direction: column; align-items: flex-start; }
    .ac-security { align-items: flex-start; }
    .ac-footer { margin-top: 22px; }
}

@media (max-width: 360px) {
    .ac-shell { padding: 12px; }
    .ac-auth { padding-inline: 15px; }
    .ac-auth__brand span { font-size: 10px; }
    .ac-input input { font-size: 13px; }
}
