/* =========================================================
   BATEPONTO — AUTH / CADASTRO
   Light Startup
   ========================================================= */

.bp-auth-page {
    min-height: 100vh;
    margin: 0;

    background: #f7f7f6;
    color: #1d1d1f;
}

.bp-auth-page *,
.bp-auth-page *::before,
.bp-auth-page *::after {
    box-sizing: border-box;
}

.bp-auth-shell {
    display: grid;
    grid-template-columns:
        minmax(320px, .85fr)
        minmax(560px, 1.15fr);

    min-height: 100vh;
}

/* =========================================================
   BRAND
   ========================================================= */

.bp-auth-brand {
    display: flex;
    flex-direction: column;

    padding: 36px 42px;

    border-right: 1px solid #e6e6e4;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(119, 124, 255, .08),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #f3f3f2 0%,
            #f7f7f6 100%
        );
}

.bp-auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    width: max-content;

    color: #1d1d1f;
    text-decoration: none;
}

.bp-auth-brand-mark {
    object-fit: contain;
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #8d91ff,
            #7075f4
        );

    color: #fff;

    font-size: .88rem;
    font-weight: 820;

    box-shadow: 0 7px 18px rgba(119, 124, 255, .14);
}

.bp-auth-brand-copy strong,
.bp-auth-brand-copy small {
    display: block;
}

.bp-auth-brand-copy strong {
    font-size: .92rem;
    font-weight: 780;
    letter-spacing: -.018em;
}

.bp-auth-brand-copy small {
    margin-top: 2px;

    color: #8b8b8f;

    font-size: .64rem;
}

.bp-auth-intro {
    max-width: 440px;
    margin: auto 0;
    padding: 60px 0;
}

.bp-auth-eyebrow {
    display: inline-block;

    margin-bottom: .7rem;

    color: #666be3;

    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.bp-auth-intro h1 {
    max-width: 420px;
    margin: 0;

    color: #1d1d1f;

    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.bp-auth-intro p {
    max-width: 430px;
    margin: 1rem 0 0;

    color: #77777b;

    font-size: .82rem;
    line-height: 1.6;
}

.bp-auth-benefits {
    display: grid;
    gap: .65rem;

    margin: 1.5rem 0 0;
    padding: 0;

    list-style: none;
}

.bp-auth-benefits li {
    display: flex;
    align-items: center;
    gap: .55rem;

    color: #555559;

    font-size: .72rem;
    font-weight: 650;
}

.bp-auth-benefits li span {
    display: grid;
    place-items: center;

    width: 22px;
    height: 22px;

    border-radius: 8px;

    background: #eaf8f2;
    color: #138a63;

    font-size: .62rem;
    font-weight: 820;
}

.bp-auth-brand-foot {
    margin: 0;

    color: #a0a0a4;

    font-size: .58rem;
    font-weight: 650;
}

/* =========================================================
   FORM AREA
   ========================================================= */

.bp-auth-form-area {
    display: grid;
    place-items: center;

    padding: 34px;

    background: #fff;
}

.bp-auth-card {
    width: min(100%, 680px);
}

.bp-auth-card-head {
    margin-bottom: 1.2rem;
}

.bp-auth-step {
    display: inline-block;

    margin-bottom: .35rem;

    color: #8f8f93;

    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bp-auth-card-head h2 {
    margin: 0;

    color: #1d1d1f;

    font-size: clamp(1.55rem, 2.6vw, 1.95rem);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.bp-auth-card-head p {
    margin: .35rem 0 0;

    color: #77777b;

    font-size: .76rem;
    line-height: 1.45;
}

/* Alert */

.bp-auth-alert {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: .72rem;

    margin-bottom: 1rem;
    padding: .78rem .84rem;

    border: 1px solid #efd5da;
    border-radius: 14px;

    background: #fff4f5;
}

.bp-auth-alert-icon {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    border-radius: 10px;

    background: #ffe5e9;
    color: #b7394c;
}

.bp-auth-alert-icon svg {
    display: block;
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bp-auth-alert-content {
    min-width: 0;
    padding-top: 1px;
}

.bp-auth-alert strong,
.bp-auth-alert-content > span {
    display: block;
}

.bp-auth-alert strong {
    color: #8f3947;
    font-size: .68rem;
    font-weight: 760;
}

.bp-auth-alert-content > span {
    margin-top: .12rem;
    color: #955866;
    font-size: .61rem;
    line-height: 1.45;
}

.bp-auth-alert-actions {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    margin-top: .48rem;
}

.bp-auth-alert-actions a {
    color: #6267e6;
    font-size: .60rem;
    font-weight: 760;
    text-decoration: none;
}

.bp-auth-alert-actions a:hover {
    text-decoration: underline;
}

/* Form */

.bp-auth-form {
    display: grid;
    gap: .9rem;
}

.bp-auth-section {
    display: grid;
    gap: .72rem;

    padding: .9rem;

    border: 1px solid #e5e5e3;
    border-radius: 16px;

    background: #fff;
}

.bp-auth-section-title {
    display: flex;
    align-items: center;
    gap: .65rem;

    margin-bottom: .05rem;
}

.bp-auth-section-number {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    border-radius: 9px;

    background: #eeefff;
    color: #6267e6;

    font-size: .62rem;
    font-weight: 800;
}

.bp-auth-section-title strong,
.bp-auth-section-title small {
    display: block;
}

.bp-auth-section-title strong {
    color: #303034;

    font-size: .72rem;
    font-weight: 760;
}

.bp-auth-section-title small {
    margin-top: .08rem;

    color: #929296;

    font-size: .57rem;
}

.bp-auth-field {
    min-width: 0;
}

.bp-auth-field label {
    display: block;

    margin-bottom: .32rem;

    color: #5f5f63;

    font-size: .62rem;
    font-weight: 720;
}

.bp-auth-field input {
    width: 100%;
    min-height: 43px;

    padding: .68rem .74rem;

    border: 1px solid #ddddda;
    border-radius: 11px;

    background: #fff;
    color: #1d1d1f;

    font: inherit;
    font-size: .73rem;

    outline: none;

    transition:
        border-color .13s ease,
        box-shadow .13s ease,
        background .13s ease;
}

.bp-auth-field input::placeholder {
    color: #aaaab0;
}

.bp-auth-field input:hover {
    border-color: #d3d3d0;
}

.bp-auth-field input:focus {
    border-color: #aaaefd;

    box-shadow: 0 0 0 3px rgba(119, 124, 255, .11);
}

.bp-auth-field input[aria-invalid="true"] {
    border-color: #d88996;
    background: #fffafb;
}

.bp-auth-field input[aria-invalid="true"]:focus {
    border-color: #c65769;
    box-shadow: 0 0 0 3px rgba(198, 87, 105, .11);
}

.bp-auth-field-error {
    display: block;
    margin-top: .35rem;
    color: #a63e50;
    font-size: .59rem;
    font-weight: 650;
    line-height: 1.4;
}

.bp-auth-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.bp-password-field {
    position: relative;
}

.bp-password-field input {
    padding-right: 68px;
}

.bp-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;

    padding: .28rem .34rem;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #7075d7;

    font-size: .56rem;
    font-weight: 740;

    transform: translateY(-50%);
}

.bp-password-toggle:hover,
.bp-password-toggle:focus-visible {
    background: #f2f2ff;
    color: #555ad0;
}

.bp-password-help {
    margin: -.2rem 0 0;

    color: #939397;

    font-size: .56rem;
}

/* Submit */

.bp-auth-submit {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    width: 100%;
    min-height: 44px;

    padding: .68rem .9rem;

    border: 1px solid #777cff;
    border-radius: 12px;

    background: #777cff;
    color: #fff;

    font: inherit;
    font-size: .73rem;
    font-weight: 760;
    line-height: 1;

    box-shadow: 0 7px 18px rgba(119, 124, 255, .14);

    transition:
        background .14s ease,
        border-color .14s ease,
        transform .14s ease,
        opacity .14s ease;
}

.bp-auth-submit:hover,
.bp-auth-submit:focus-visible {
    border-color: #676cf1;
    background: #676cf1;
}

.bp-auth-submit:active {
    transform: translateY(1px);
}

.bp-auth-submit:disabled {
    cursor: progress;
    opacity: .75;
}

.bp-auth-submit-spinner {
    display: none;

    width: 15px;
    height: 15px;

    border: 2px solid rgba(255, 255, 255, .36);
    border-top-color: #fff;
    border-radius: 50%;

    animation: bp-auth-spin .7s linear infinite;
}

.bp-auth-submit.is-loading .bp-auth-submit-spinner {
    display: inline-block;
}

@keyframes bp-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.bp-auth-login-link {
    margin: .05rem 0 0;

    color: #8a8a8e;

    font-size: .63rem;
    text-align: center;
}

.bp-auth-login-link a {
    color: #6267e6;
    font-weight: 740;
    text-decoration: none;
}

.bp-auth-login-link a:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 980px) {
    .bp-auth-shell {
        grid-template-columns: 1fr;
    }

    .bp-auth-brand {
        min-height: auto;
        padding: 22px 24px;

        border-right: 0;
        border-bottom: 1px solid #e6e6e4;
    }

    .bp-auth-intro {
        display: none;
    }

    .bp-auth-brand-foot {
        display: none;
    }

    .bp-auth-form-area {
        padding: 28px 20px 40px;
    }
}

@media (min-width: 1440px) {
    .bp-auth-shell {
        grid-template-columns:
            minmax(540px, .92fr)
            minmax(760px, 1.08fr);
    }

    .bp-auth-brand {
        padding: 44px clamp(54px, 5vw, 104px);
    }

    .bp-auth-intro,
    .bp-auth-brand-foot {
        width: min(100%, 520px);
        max-width: 520px;
        margin-inline: auto;
    }

    .bp-auth-intro h1 {
        max-width: 500px;
        font-size: clamp(2.5rem, 2.6vw, 3.35rem);
    }

    .bp-auth-intro p {
        max-width: 500px;
        font-size: .88rem;
    }

    .bp-auth-form-area {
        padding: 40px clamp(48px, 5vw, 104px);
    }

    .bp-auth-card {
        width: min(100%, 720px);
    }

    .bp-auth-field input {
        min-height: 48px;
        font-size: .78rem;
    }
}

@media (max-width: 640px) {
    .bp-auth-brand {
        padding: 16px;
    }

    .bp-auth-form-area {
        align-items: start;

        padding: 22px 14px 34px;
    }

    .bp-auth-grid-two {
        grid-template-columns: 1fr;
    }

    .bp-auth-section {
        padding: .78rem;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bp-auth-submit,
    .bp-auth-field input,
    .bp-password-toggle {
        transition: none !important;
    }

    .bp-auth-submit-spinner {
        animation: none;
    }
}
