/* AccuTypes sign-in pages – redesign 2026-12 (the POS split page, AccuTypes colours).
   Colours only from the theme variables of site.css (--primary, --accent, --secondary, --mix). */
body.at-auth {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 44%) 1fr;
    background: #f6f5f2;
    color: #2f2f2f;
    font-family: var(--font-primary);
    font-size: 14px;
    --at-primary-ink: color-mix(in srgb, var(--primary) 62%, #000);
    --at-primary-soft: color-mix(in srgb, var(--primary) 14%, #fff);
}

/* ---------- brand panel ---------- */
.at-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 40px;
    color: #fff;
    background: var(--mix);
    overflow: hidden;
}

    .at-auth-brand::after {            /* soft light from the top right */
        content: "";
        position: absolute;
        inset: -30% -30% auto auto;
        width: 70%;
        aspect-ratio: 1;
        border-radius: 50%;
        background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent);
        pointer-events: none;
    }

.at-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .1em;
    font-size: 15px;
}

.at-auth-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .at-auth-mark img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }

.at-auth-pitch { max-width: 440px; position: relative; z-index: 1; }

    .at-auth-pitch h2 {
        font-size: 28px;
        font-weight: 700;
        line-height: 1.25;
        margin: 0 0 12px;
    }

    .at-auth-pitch p { opacity: .92; margin: 0 0 18px; line-height: 1.6; }

    .at-auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
    .at-auth-pitch li { display: flex; gap: 10px; align-items: flex-start; opacity: .95; }
    .at-auth-pitch li i { font-size: 16px; line-height: 1.3; }

.at-auth-foot { font-size: 12px; opacity: .8; }

/* ---------- form side ---------- */
.at-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.at-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e7e3dc;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(40, 33, 20, .08);
    padding: 28px 28px 24px;
}

.at-auth-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--at-primary-soft);
    color: var(--at-primary-ink);
    font-size: 22px;
    margin-bottom: 14px;
}

    .at-auth-icon.at-auth-icon-danger { background: #fdecec; color: #b42318; }

.at-auth-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #2f2f2f;
}

.at-auth-lead { color: #6b665e; margin: 0 0 18px; line-height: 1.55; }

.at-field { margin-bottom: 14px; }

    .at-field label {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        color: #5f5f5f;
        margin-bottom: 5px;
    }

.at-input {
    position: relative;
}

    .at-input > i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #8a847a;
        font-size: 15px;
    }

    .at-input .form-control { padding-left: 38px; }

.at-auth-card .form-control {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e2ddd4;
    font-size: 14px;
}

    .at-auth-card .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--at-primary-soft);
    }

.at-auth-card .text-danger { display: block; font-size: 12px; margin-top: 4px; line-height: 1.35; }
.at-auth-card .validation-summary-errors ul { margin: 0 0 12px; padding-left: 18px; }

.at-btn-primary,
.at-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.at-btn-primary { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
    .at-btn-primary:hover { filter: brightness(1.06); color: #fff; }
    .at-btn-primary:disabled { opacity: .7; cursor: progress; }

.at-btn-outline { background: #fff; border: 1px solid #e2ddd4; color: #2f2f2f; }
    .at-btn-outline:hover { border-color: var(--primary); background: var(--at-primary-soft); color: var(--at-primary-ink); }

.at-auth-or {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8a847a;
    font-size: 12px;
    margin: 16px 0;
}

    .at-auth-or::before,
    .at-auth-or::after { content: ""; flex: 1; height: 1px; background: #ece8e1; }

.at-auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
}

.at-auth-card a:not(.at-btn-primary):not(.at-btn-outline) { color: var(--at-primary-ink); font-weight: 600; }

.at-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: 13px; color: #5f5f5f; }
    .at-check input { width: 16px; height: 16px; accent-color: var(--primary); }

.at-auth-card .alert { border-radius: 10px; font-size: 13px; padding: 10px 12px; }
    .at-auth-card .alert p { margin: 0; }

.at-help { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ece8e1; font-size: 12.5px; color: #6b665e; }
    .at-help ul { padding-left: 18px; margin: 6px 0 0; }

/* ---------- small screens: brand on top ---------- */
@media (max-width: 860px) {
    body.at-auth { grid-template-columns: 1fr; }
    .at-auth-brand { padding: 20px 22px; gap: 14px; }
    .at-auth-pitch h2 { font-size: 20px; }
    .at-auth-pitch p, .at-auth-pitch ul, .at-auth-foot { display: none; }
    .at-auth-main { align-items: flex-start; padding: 20px 14px 32px; }
    .at-auth-card { padding: 22px 18px; }
}
