/* AgentRank — Auth. Mesma simetria da referência: marca | formulário. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.auth-page {
    --auth-navy: #050b14;
    --auth-cyan: #25bfd3;
    --auth-blue: #2563eb;
    --auth-text: #0f1728;
    --auth-muted: #667085;
    --auth-border: #e4e7ec;
    --auth-paper: #f6f7f9;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: #fff;
    font-family: Inter, var(--ar-font-sans, system-ui, "Segoe UI", sans-serif);
    color: var(--auth-text);
}

.auth-page *,
.auth-page *::before,
.auth-page *::after { box-sizing: border-box; }

.auth-page ::selection { background: rgba(37, 191, 211, .28); color: #fff; }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

/* ── Marca ── */
.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 0;
    padding: 48px 56px 28px 72px;
    color: #e8eef6;
    background:
        radial-gradient(900px 520px at 88% 8%, rgba(37, 99, 235, .32), transparent 58%),
        radial-gradient(720px 480px at 8% 92%, rgba(37, 191, 211, .22), transparent 55%),
        linear-gradient(165deg, #041018 0%, #071527 42%, #0a1f3d 72%, #08244a 100%);
    overflow: hidden;
}

.auth-canvas { position: absolute; inset: 0; pointer-events: none; }

.auth-canvas__wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 80% 30%, rgba(37, 191, 211, .14), transparent 62%),
        linear-gradient(180deg, transparent 55%, rgba(4, 16, 24, .45) 100%);
}

.auth-canvas__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 80% at 78% 42%, #000 8%, transparent 78%);
}

.auth-canvas__chart {
    position: absolute;
    right: -8%;
    bottom: 6%;
    width: 92%;
    height: auto;
    opacity: .95;
}

.auth-brand-top,
.auth-brand-content,
.auth-proof { position: relative; z-index: 1; }

.auth-brand-top { max-width: 560px; }

.auth-brand-logo { margin-bottom: 14px; }
.auth-brand-logo .ar-brand-logo--xl { max-height: 58px; height: 58px; width: auto; }

.auth-brand-tagline {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .62);
}

.auth-brand-badge {
    display: inline-flex;
    margin: 0 0 22px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    background: transparent;
    border: 1px solid rgba(37, 191, 211, .35);
    border-radius: 999px;
}

.auth-brand-content { max-width: 560px; }

.auth-brand-title {
    margin: 0 0 14px;
    font-size: clamp(40px, 4.2vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
}

.auth-brand-title em {
    font-style: normal;
    color: var(--auth-cyan);
}

.auth-brand-text {
    margin: 0 0 22px;
    max-width: 44ch;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .68);
}

.auth-benefits {
    list-style: none;
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.auth-benefit__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--auth-cyan);
    background: rgba(37, 191, 211, .08);
    border: 1.5px solid rgba(37, 191, 211, .38);
}

.auth-benefit__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 4px;
}

.auth-benefit__body strong {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.auth-benefit__body span {
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .62);
    max-width: 42ch;
}

.auth-proof {
    display: flex;
    gap: 16px;
    align-items: center;
    align-self: stretch;
    width: auto;
    max-width: none;
    margin: 20px 0 0;
    padding: 16px 20px;
    min-height: 0;
    background: rgba(8, 22, 40, .55);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.auth-proof__avatar {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .16);
}

.auth-proof__body { min-width: 0; }

.auth-proof__stars {
    display: flex;
    gap: 3px;
    margin: 0 0 8px;
    color: var(--auth-cyan);
}

.auth-proof__quote {
    margin: 0 0 10px;
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.45;
    color: #fff;
}

.auth-proof__who {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
}

.auth-proof__who strong {
    color: #fff;
    font-weight: 700;
}

/* ── Formulário ── */
.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: 64px 56px 28px;
    overflow: hidden;
    background: #f4f5f7;
}

.auth-toolbar {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-language-switcher .ar-lang-switcher {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 999px;
}

.auth-language-switcher .ar-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    color: var(--auth-muted);
}

.auth-language-switcher .ar-lang-btn:hover { background: #f2f4f8; color: var(--auth-text); }
.auth-language-switcher .ar-lang-btn.is-active {
    background: var(--auth-navy);
    color: #fff;
}

.auth-help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f5f68;
    text-decoration: none;
    background: #e8f7f4;
    border: 1px solid #c8ebe4;
    border-radius: 999px;
}

.auth-help__icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
    background: #fff;
    border: 1px solid #c8ebe4;
}

.auth-help:hover { background: #def3ef; }

.auth-card {
    width: 100%;
    max-width: 560px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.auth-card-logo { display: none; }

.auth-trustbar {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0 0 22px;
    padding: 14px 16px;
    background: #e9f8f4;
    border: 0;
    border-radius: 16px;
}

.auth-trustbar__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #0f766e;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.auth-trustbar__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.auth-trustbar__copy strong {
    font-size: 14px;
    font-weight: 700;
    color: #134e4a;
}

.auth-trustbar__copy span {
    font-size: 13px;
    line-height: 1.45;
    color: #3f6d69;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.036em;
    line-height: 1.15;
    color: var(--auth-text);
    text-align: left;
}

.auth-subtitle {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--auth-muted);
    text-align: left;
}

.auth-subtitle + .auth-trial-note {
    margin: -12px 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--auth-muted);
    text-align: left;
}

.auth-form { display: grid; gap: 12px; }

.ar-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.auth-field { display: grid; gap: 6px; }

.auth-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-label { font-size: 13px; font-weight: 650; color: var(--auth-text); }

.auth-forgot {
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-blue);
    text-decoration: none;
}

.auth-forgot:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-left: 44px; }

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--auth-text);
    background: rgba(255, 255, 255, .72);
    border: 1px solid transparent;
    border-radius: 12px;
    caret-color: var(--auth-cyan);
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.auth-input:hover { background: rgba(255, 255, 255, .88); }
.auth-input:focus {
    outline: none;
    background: rgba(255, 255, 255, .96);
    border-color: var(--auth-cyan);
    box-shadow: 0 0 0 4px rgba(37, 191, 211, .16);
}

.auth-input[aria-invalid="true"] { border-color: #b42318; }

.auth-password-input { padding-right: 48px; }

.auth-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    border-radius: 8px;
}

.auth-password-toggle:hover { color: var(--auth-text); background: #eef2f6; }
.auth-password-toggle:focus-visible { outline: 2px solid var(--auth-cyan); outline-offset: 2px; }
.auth-password-icon[hidden] { display: none !important; }

.auth-submit,
.auth-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 650;
    font-family: inherit;
    color: #fff;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--auth-cyan) 0%, var(--auth-blue) 100%);
    box-shadow: 0 10px 20px -8px rgba(37, 191, 211, .5);
    transition: transform .16s cubic-bezier(.16, 1, .3, 1), filter .16s, box-shadow .16s;
}

.auth-submit::after,
.auth-btn::after {
    content: "";
    position: absolute;
    right: 18px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-submit:hover,
.auth-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 14px 28px -8px rgba(37, 99, 235, .45);
    transform: translateY(-1px);
}

.auth-submit:active,
.auth-btn:active { transform: none; }
.auth-submit:focus-visible,
.auth-btn:focus-visible { outline: 2px solid #7dd3e0; outline-offset: 3px; }
.auth-form.is-busy .auth-submit,
.auth-submit[disabled],
.auth-btn[disabled] { opacity: .7; cursor: wait; transform: none; }

.auth-check { display: block; }
.auth-check-label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--auth-muted); }
.auth-link { color: var(--auth-blue); font-weight: 600; }

.auth-footer-text {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--auth-muted);
    text-align: center;
}

.auth-footer-text a {
    color: var(--auth-blue);
    font-weight: 650;
    text-decoration: none;
}

.auth-footer-text a:hover,
.auth-footer-text a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.auth-secure-note,
.auth-dev-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--auth-muted);
    text-align: center;
}

.auth-marks {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 560px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.auth-marks li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 88px;
    font-size: 12px;
    color: var(--auth-muted);
    text-align: center;
}

.auth-marks__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #5ec8d8;
    background: transparent;
    border: 1.5px solid rgba(94, 200, 216, .45);
}

.auth-marks__copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

.auth-marks__copy strong {
    font-size: 12px;
    font-weight: 700;
    color: #475467;
}

.auth-marks__copy span {
    font-size: 11px;
    color: #98a2b3;
}

html,
body.ar-body.ar-body-login {
    margin: 0;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #fff;
}

body.ar-body.ar-body-login > main {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
    height: 100%;
}

.auth-flash-stack {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: min(480px, calc(100% - 24px));
}

.auth-flash-stack .alert { margin-bottom: 0; }

.auth-shell--signup .auth-panel {
    justify-content: center;
    padding-top: 64px;
    padding-bottom: 28px;
}

@media (max-width: 1100px) {
    .auth-brand-panel { padding: 40px 36px 24px 44px; }
    .auth-brand-title { font-size: 40px; }
    .auth-proof { max-width: none; }
    .auth-panel { padding: 56px 32px 24px; }
}

@media (min-width: 768px) and (max-height: 900px) {
    .auth-brand-panel { padding: 32px 48px 18px 56px; }
    .auth-brand-tagline { margin-bottom: 12px; }
    .auth-brand-badge { margin-bottom: 14px; }
    .auth-brand-title { margin-bottom: 10px; font-size: 40px; }
    .auth-brand-text { margin-bottom: 14px; }
    .auth-benefits { gap: 12px; }
    .auth-proof { margin-top: 12px; padding: 12px 16px; }
    .auth-panel,
    .auth-shell--signup .auth-panel { padding: 48px 48px 16px; }
    .auth-trustbar { margin-bottom: 14px; padding: 12px 14px; }
    .auth-subtitle { margin-bottom: 14px; }
    .auth-subtitle + .auth-trial-note { margin: -8px 0 12px; }
    .auth-form { gap: 10px; }
    .auth-footer-text { margin-top: 12px; }
    .auth-marks { margin-top: 14px; }
}

@media (max-width: 767.98px) {
    html,
    body.ar-body.ar-body-login {
        height: auto;
        min-height: 100dvh;
        overflow: auto;
    }
    body.ar-body.ar-body-login > main,
    .auth-page,
    .auth-shell {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
    .auth-panel {
        height: auto;
        min-height: 100dvh;
        justify-content: flex-start;
        padding: 76px 20px calc(28px + env(safe-area-inset-bottom, 0px));
        overflow: visible;
        background: #f4f5f7;
    }
    .auth-card {
        max-width: none;
        padding: 8px 0 16px;
    }
    .auth-card-logo {
        display: flex;
        margin-bottom: 22px;
    }
    .auth-toolbar { top: 16px; right: 16px; }
    .auth-help span,
    .auth-help { font-size: 12px; padding: 7px 12px; }
    .auth-title { font-size: 26px; }
}

@media (max-width: 390px) {
    .auth-help { display: none; }
    .auth-title { font-size: 24px; }
    .auth-input,
    .auth-submit { height: 48px; }
    .auth-marks { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-submit:hover,
    .auth-btn:hover { transform: none; }
}
