:root {
    --auth-bg: #f7f5ef;
    --auth-panel: #ffffff;
    --auth-ink: #172033;
    --auth-muted: #657086;
    --auth-line: #dfe5ee;
    --auth-blue: #255fba;
    --auth-green: #16845f;
    --auth-shadow: 0 24px 70px rgba(31, 41, 55, .12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(37, 95, 186, .10), transparent 34%),
        linear-gradient(315deg, rgba(22, 132, 95, .12), transparent 30%),
        var(--auth-bg);
    color: var(--auth-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.auth-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
    gap: 42px;
    align-items: center;
    padding: 40px 0 18px;
}

.auth-hero {
    display: grid;
    gap: 36px;
}

.auth-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
}

.auth-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--auth-line);
    padding: 6px;
}

.auth-copy {
    max-width: 680px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
    color: var(--auth-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.auth-copy h1 {
    max-width: 720px;
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: .98;
    letter-spacing: 0;
}

.auth-copy p {
    max-width: 620px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 18px;
    line-height: 1.8;
}

.auth-highlights {
    width: min(100%, 720px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth-highlights div,
.access-card,
.login-card {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(223, 229, 238, .96);
    border-radius: 8px;
    box-shadow: var(--auth-shadow);
}

.auth-highlights div {
    min-height: 130px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
}

.auth-highlights span,
.access-card span,
.login-title span {
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-highlights strong {
    font-size: 15px;
    line-height: 1.45;
}

.auth-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-icon--sm {
    width: 18px;
    height: 18px;
}

.auth-panel {
    display: grid;
    gap: 16px;
}

.access-card {
    min-height: 230px;
    display: grid;
    gap: 18px;
    padding: 24px;
}

.access-card--commerce {
    border-top: 5px solid var(--auth-green);
}

.access-card--pos {
    border-top: 5px solid var(--auth-blue);
}

.access-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
}

.access-card--commerce .access-card__icon {
    background: var(--auth-green);
}

.access-card--pos .access-card__icon {
    background: var(--auth-blue);
}

.access-card h2 {
    margin: 8px 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0;
}

.access-card p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.7;
}

.access-card__action,
.login-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.access-card--commerce .access-card__action {
    background: var(--auth-green);
}

.access-card--pos .access-card__action {
    background: var(--auth-blue);
}

.login-card {
    padding: 28px;
}

.login-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    margin-bottom: 28px;
    background: #eef2f7;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
}

.login-tabs a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 6px;
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.login-tabs a.is-active {
    background: #fff;
    color: var(--auth-ink);
    box-shadow: 0 8px 20px rgba(31, 41, 55, .10);
}

.login-title {
    margin-bottom: 24px;
}

.login-title h2 {
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: 0;
}

.login-title p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.6;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(201, 54, 54, .22);
    border-radius: 8px;
    background: rgba(201, 54, 54, .08);
    color: #9f1f1f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

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

.form-group {
    display: grid;
    gap: 9px;
}

.form-label {
    font-size: 14px;
    font-weight: 800;
}

.form-control {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cfd8e5;
    border-radius: 8px;
    background: #fff;
    padding: 0 14px;
    color: var(--auth-ink);
    font: inherit;
    outline: none;
}

.form-control:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 4px rgba(37, 95, 186, .13);
}

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-muted);
    font-size: 14px;
    font-weight: 700;
}

.remember-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-blue);
}

.login-btn {
    width: 100%;
    background: var(--auth-blue);
    font-family: inherit;
}

.auth-page--ecommerce .login-btn {
    background: var(--auth-green);
}

.auth-page--ecommerce .remember-row input {
    accent-color: var(--auth-green);
}

.auth-page--ecommerce .form-control:focus {
    border-color: var(--auth-green);
    box-shadow: 0 0 0 4px rgba(22, 132, 95, .14);
}

.back-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    color: var(--auth-blue);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.auth-page--ecommerce .back-link {
    color: var(--auth-green);
}

.auth-footer {
    width: min(1180px, calc(100% - 40px));
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto;
    color: var(--auth-muted);
    font-size: 13px;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 28px;
    }

    .auth-copy h1 {
        font-size: 48px;
    }

    .auth-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-panel--form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .auth-shell,
    .auth-footer {
        width: min(100% - 28px, 1180px);
    }

    .auth-shell {
        gap: 26px;
        padding-bottom: 12px;
    }

    .auth-copy h1 {
        font-size: 40px;
    }

    .auth-copy p {
        font-size: 16px;
    }

    .auth-highlights,
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .access-card,
    .login-card {
        padding: 20px;
    }

    .auth-footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-bottom: 18px;
    }
}
