@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
    --surface:#ffffff;
    --text:#171717;
    --muted:#717171;
    --line:#dddddd;
    --line-soft:#ededed;

    --blue:#2563eb;
    --blue-dark:#1d4ed8;
    --red:#2563eb;
    --red-dark:#1d4ed8;

    --danger:#b42318;
}

*{
    box-sizing:border-box;
}

html,
body{
    min-height:100%;
}

body{
    margin:0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:#f7f7f7;

    color:var(--text);

    -webkit-font-smoothing:
        antialiased;

    text-rendering:
        optimizeLegibility;
}

button,
input{
    font:inherit;
}


.auth-screen{
    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:32px 20px;
}


.auth-box{
    width:min(
        100%,
        440px
    );

    padding:
        36px
        36px
        30px;

    background:#fff;

    border:
        1px solid
        var(--line-soft);

    border-radius:24px;

    box-shadow:
        0 16px 45px
        rgba(0,0,0,.055);
}


.auth-brand{
    display:block;

    width:max-content;

    margin:
        0 auto
        20px;

    text-decoration:none;
}


.auth-brand img{
    display:block;

    height:34px;

    width:auto;

    object-fit:contain;
}


.auth-heading,
.wizard-heading{
    text-align:center;
}


.auth-heading{
    margin-bottom:28px;
}


.auth-heading h1,
.wizard-heading h1{
    margin:0;

    font-size:29px;

    line-height:1.12;

    font-weight:700;

    letter-spacing:-.04em;
}


.auth-heading p,
.wizard-heading p{
    margin:
        9px 0 0;

    color:var(--muted);

    font-size:14px;

    line-height:1.55;
}


.auth-error{
    margin:
        0 0
        20px;

    padding:
        12px 14px;

    border:
        1px solid
        #ffd4d8;

    border-radius:13px;

    background:#fff6f6;

    color:var(--danger);

    font-size:13px;

    line-height:1.45;
}


.auth-field{
    display:grid;

    gap:8px;

    margin-bottom:18px;
}


.auth-field-head{
    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:12px;
}


.auth-field label{
    font-size:13px;

    color:#3d3d3d;

    font-weight:600;
}


.auth-inline-link{
    color:var(--muted);

    font-size:13px;

    font-weight:500;

    text-decoration:none;
}


.auth-inline-link:hover{
    color:var(--text);
}


.auth-field input,
.wizard-input-line input,
.wizard-password input{
    width:100%;

    height:54px;

    padding:
        0 16px;

    border:
        1px solid
        var(--line);

    border-radius:14px;

    background:#fff;

    color:var(--text);

    outline:none;

    font-size:16px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.auth-field input:focus,
.wizard-input-line input:focus,
.wizard-password input:focus{
    border-color:#929292;

    box-shadow:
        0 0 0 3px
        rgba(0,0,0,.045);
}


.auth-primary{
    width:100%;

    min-height:55px;

    border:0;

    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    color:#fff;

    cursor:pointer;

    font-weight:700;

    box-shadow:
        0 10px 24px
        rgba(37,99,235,.22);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.auth-primary:hover{
    transform:
        translateY(-1px);

    box-shadow:
        0 13px 28px
        rgba(37,99,235,.26);
}


.auth-footer,
.wizard-footer{
    margin-top:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:5px;

    color:var(--muted);

    font-size:14px;
}


.auth-footer a,
.wizard-footer a{
    color:var(--text);

    font-weight:650;

    text-decoration:none;
}


.auth-secondary-link{
    display:block;

    width:max-content;

    margin:
        18px auto 0;

    color:#595959;

    font-size:13px;

    text-decoration:none;
}


/* WIZARD */

.auth-box-wizard{
    min-height:410px;
}


.wizard-progress{
    width:100%;

    height:2px;

    margin:
        0 0
        38px;

    overflow:hidden;

    border-radius:999px;

    background:#eeeeee;
}


.wizard-progress-bar{
    display:block;

    width:25%;

    height:100%;

    background:var(--red);

    transition:
        width .2s ease;
}


.wizard-step[hidden]{
    display:none !important;
}


.wizard-heading{
    margin-bottom:28px;
}


.wizard-input-line{
    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        54px;

    gap:9px;
}


.wizard-arrow{
    width:54px;
    height:54px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:0;

    border-radius:15px;

    background:var(--red);

    color:#fff;

    cursor:pointer;

    box-shadow:
        0 8px 20px
        rgba(215,25,50,.15);
}


.wizard-arrow svg{
    width:20px;
    height:20px;

    fill:none;

    stroke:currentColor;

    stroke-width:2;

    stroke-linecap:round;

    stroke-linejoin:round;
}


.wizard-error{
    min-height:20px;

    margin:
        8px 2px 0;

    color:var(--danger);

    font-size:12px;
}


.wizard-back{
    display:block;

    margin:
        0 0
        22px;

    padding:0;

    border:0;

    background:transparent;

    color:var(--muted);

    cursor:pointer;

    font-size:13px;
}


.wizard-password{
    width:100%;
}


.wizard-submit{
    margin-top:11px;
}


/* MOBILE */

@media(
    max-width:560px
){

    body{
        background:#fff;
    }

    .auth-screen{
        display:block;

        min-height:100vh;

        padding:0;
    }

    .auth-box{
        width:100%;

        min-height:100vh;

        padding:
            28px
            22px
            36px;

        border:0;

        border-radius:0;

        box-shadow:none;
    }

    .auth-brand{
        margin-bottom:28px;
    }

    .auth-brand img{
        height:34px;
    }

    .auth-heading h1,
    .wizard-heading h1{
        font-size:28px;
    }

    .wizard-progress{
        margin-bottom:48px;
    }

    .wizard-input-line{
        grid-template-columns:
            minmax(0,1fr)
            52px;
    }

    .wizard-arrow{
        width:52px;
        height:52px;
    }

    .auth-field input,
    .wizard-input-line input,
    .wizard-password input{
        height:52px;
    }

}


/* ACCESSIBILITY */

@media(
    prefers-reduced-motion:
    reduce
){

    *,
    *::before,
    *::after{
        transition:none !important;
        animation:none !important;
    }

}


/* Signup wizard refinement */
.wizard-heading p{
    display:none !important;
}

.wizard-back{
    width:34px !important;
    height:34px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    margin:
        -8px 0
        18px -7px !important;

    padding:0 !important;

    border:0 !important;
    border-radius:50% !important;

    background:transparent !important;
    color:#2f2f2f !important;

    font-size:0 !important;
    line-height:0 !important;

    cursor:pointer !important;

    transition:
        background-color .15s ease,
        color .15s ease !important;
}

.wizard-back:hover{
    background:#f2f2f2 !important;
    color:#171717 !important;
}

.wizard-back svg{
    display:block !important;

    width:19px !important;
    height:19px !important;

    fill:none !important;
    stroke:currentColor !important;

    stroke-width:2 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

.wizard-heading{
    margin-bottom:22px !important;
}

button[type="submit"],
.auth-card button[type="submit"],
.auth-submit-btn{
    width:100%;
    min-height:50px;
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg, var(--blue), var(--blue-dark));
    color:#fff;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(37,99,235,.22);
    transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

button[type="submit"]:hover,
.auth-card button[type="submit"]:hover,
.auth-submit-btn:hover{
    transform:translateY(-1px);
    filter:brightness(.98);
    box-shadow:0 13px 28px rgba(37,99,235,.28);
}

/* AUTH SHELL & AUTH CARD COMPATIBILITY */
.auth-shell{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px 20px;
    background:#f7f7f7;
}

.auth-card{
    width:min(100%, 440px);
    margin:0 auto;
    padding:36px 36px 30px;
    background:#fff;
    border:1px solid var(--line-soft);
    border-radius:24px;
    box-shadow:0 16px 45px rgba(0,0,0,.055);
}

.auth-card .brand{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:0 auto 24px;
    text-decoration:none;
    color:var(--text);
    width:100%;
}

.auth-card .brand-mark{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:10px;
    background:rgba(37,99,235,.08);
    color:var(--blue);
}

.auth-card .brand-name{
    font-size:22px;
    font-weight:700;
    letter-spacing:-.03em;
    color:var(--text);
    line-height:1;
}

.auth-card #page-title{
    margin:0;
    font-size:28px;
    line-height:1.15;
    font-weight:700;
    letter-spacing:-.04em;
    text-align:center;
    color:var(--text);
}

.auth-card .lead{
    margin:10px 0 24px;
    color:var(--muted);
    font-size:14px;
    line-height:1.55;
    text-align:center;
}

.auth-card .error{
    margin:0 0 20px;
    padding:12px 14px;
    border:1px solid #ffd4d8;
    border-radius:13px;
    background:#fff6f6;
    color:var(--danger);
    font-size:13px;
    line-height:1.45;
}

.auth-card .form-row{
    display:grid;
    gap:8px;
    margin-bottom:18px;
}

.auth-card .form-row label{
    font-size:13px;
    color:#3d3d3d;
    font-weight:600;
}

.auth-card .form-row input{
    width:100%;
    height:54px;
    padding:0 16px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    color:var(--text);
    outline:none;
    font-size:16px;
    transition:border-color .15s ease, box-shadow .15s ease;
}

.auth-card .form-row input:focus{
    border-color:#929292;
    box-shadow:0 0 0 3px rgba(0,0,0,.045);
}

.auth-card .form-row input::placeholder{
    color:#a3a3a3;
}

.auth-card .helper{
    margin-top:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    color:var(--muted);
    font-size:14px;
    text-align:center;
}

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

.auth-card .helper a:hover{
    text-decoration:underline;
}

.auth-card .success-box{
    background:#f0fdf4;
    border:1px solid #bbf7d0;
    color:#166534;
    padding:18px 20px;
    border-radius:16px;
    font-size:.92rem;
    line-height:1.55;
    margin-bottom:20px;
}

.auth-card .code-action-box{
    margin-top:20px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:20px;
    text-align:center;
}

.auth-card .code-action-box p{
    margin:0 0 12px;
    font-size:.9rem;
    color:#475569;
}

.auth-card .code-action-box a.button{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    text-decoration:none;
    padding:0 16px;
    background:linear-gradient(135deg, var(--blue), var(--blue-dark));
    color:#fff;
    border-radius:14px;
    font-weight:700;
    font-size:15px;
    box-shadow:0 10px 24px rgba(37,99,235,.22);
    transition:transform .15s ease, box-shadow .15s ease;
}

.auth-card .code-action-box a.button:hover{
    transform:translateY(-1px);
    box-shadow:0 13px 28px rgba(37,99,235,.28);
}

.auth-card .code-highlight{
    font-family:monospace;
    font-size:1.2rem;
    letter-spacing:2px;
    text-align:center;
}

@media(max-width:560px){
    .auth-shell{
        display:block;
        min-height:100vh;
        padding:0;
        background:#fff;
    }

    .auth-card{
        width:100%;
        min-height:100vh;
        padding:28px 22px 36px;
        border:0;
        border-radius:0;
        box-shadow:none;
    }

    .auth-card .form-row input{
        height:52px;
    }

    .auth-card #page-title{
        font-size:26px;
    }
}



/* ============================================================
   GOOGLE_LOGIN_UI_V1
   ============================================================ */

.auth-google {
    width: 100%;
    min-height: 44px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-google .g_id_signin {
    display: flex;
    justify-content: center;
    max-width: 100%;
}

.auth-google iframe {
    max-width: 100%;
}

.auth-google-separator {
    width: 100%;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1;
}

.auth-google-separator::before,
.auth-google-separator::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e5e5e5;
}

.auth-google-separator span {
    flex: 0 0 auto;
}


/* ============================================================
   GOOGLE_LOGIN_UI_CLIP_FIX_V1

   WHY:
   The Google-rendered iframe may gain fractional or personalized
   width. Do not crop its right edge inside the Redor wrapper.
   ============================================================ */

.auth-google {
    overflow: visible;
    box-sizing: border-box;
    padding-inline: 2px;
}

.auth-google .g_id_signin {
    overflow: visible;
}

.auth-google iframe {
    max-width: none;
    overflow: visible;
}


/* ============================================================
   LOGIN_PAGE_VISUAL_STANDARD_V1
   Scoped to /entrar so signup and recovery flows stay unchanged.
   ============================================================ */

.login-page .auth-screen {
    padding: 24px 18px;
}

.login-page .auth-box {
    width: min(100%, 440px);
    padding: 32px 36px 28px;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .045);
}

.login-page .auth-heading {
    margin-bottom: 10px;
}

.login-page .auth-heading h1 {
    font-size: 29px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.04em;
}

.login-page .auth-google {
    /* GIS owns its border and iframe size; never stretch only its outer frame. */
    width: 100%;
    min-height: 40px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

.login-page .auth-google .g_id_signin {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.login-page .auth-google-separator {
    margin-bottom: 14px;
    color: #94a3b8;
    font-size: 12px;
}

.login-page .auth-google-separator::before,
.login-page .auth-google-separator::after {
    background: #e2e8f0;
}

.login-page .auth-field {
    gap: 7px;
    margin-bottom: 14px;
}

.login-page .auth-field input {
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
}

.login-page .auth-field input:focus {
    border-color: #5b8def;
    box-shadow: none;
}

.login-page .auth-primary,
.login-page button[type="submit"] {
    width: 100%;
    min-height: 40px;
    border: 1px solid #5b8def;
    border-radius: 5px;
    background: #5b8def;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
    transform: none;
}

.login-page .auth-primary:hover,
.login-page button[type="submit"]:hover {
    border-color: #4f7fd8;
    background: #4f7fd8;
    filter: none;
    box-shadow: none;
    transform: none;
}

.login-page .auth-primary:focus-visible,
.login-page button[type="submit"]:focus-visible,
.login-page .auth-field input:focus-visible {
    outline: 2px solid rgba(91, 141, 239, .24);
    outline-offset: 2px;
}

.login-page .auth-footer {
    margin-top: 18px;
}

.login-page .auth-secondary-link {
    margin-top: 16px;
}

@media (max-width: 520px) {
    .login-page .auth-screen {
        padding: 0;
    }

    .login-page .auth-box {
        min-height: 100vh;
        padding: 28px 22px 36px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-page .auth-heading h1 {
        font-size: 28px;
    }
}

html, body, body * { font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -0.025em; }


/* =========================================================
   REDOR_GOOGLE_FIRST_10F
   Exclusivo da pagina /entrar
   ========================================================= */

.login-page .auth-google {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.login-page .redor-google-action {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .redor-google-action .g_id_signin {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    width: 100%;
}

.login-page .redor-google-action--login {
    margin: 16px 0 12px;
}

.login-page .redor-login-flow {
    margin-top: 14px;
    text-align: center;
}

.login-page .redor-alternatives-trigger {
    display: block;
    margin: 0 auto 18px;
    padding: 8px;
    border: none;
    background: #fff;
    color: #d1d5db;
    font-size: 11px;
    font-weight: 400;
    text-decoration: none;
    text-underline-offset: 3px;
    cursor: pointer;
}

.login-page .redor-login-step {
    margin-top: 16px;
}

.login-page .redor-login-step[hidden],
.login-page #redorPasswordPanel[hidden],
.login-page .redor-alternatives-trigger[hidden] {
    display: none !important;
}

.login-page .redor-login-step h2 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
}

.login-page .redor-login-step p {
    color: #71717a;
    font-size: 13px;
    line-height: 1.5;
}

.login-page .redor-login-action {
    display: block;
    width: 100%;
    min-height: 40px;
    margin: 12px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    color: #181818;
    font-size: 13px;
    cursor: pointer;
}

.login-page .redor-login-link,
.login-page .redor-login-back {
    display: block;
    margin: 10px auto;
    padding: 8px;
    border: none;
    background: transparent;
    color: #71717a;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.login-page .redor-email-notice {
    margin: 14px 0;
    padding: 10px;
    color: #71717a;
    font-size: 12px;
}

.login-page #redorPasswordPanel {
    margin-top: 16px;
}

.login-page .redor-alternatives-trigger:focus-visible,
.login-page .redor-login-action:focus-visible,
.login-page .redor-login-link:focus-visible,
.login-page .redor-login-back:focus-visible {
    outline: 2px solid #5b8def;
    outline-offset: 3px;
}

/* REDOR_GOOGLE_BUTTON_FIX_10I
   Restaurados os dois controles oficiais da Stage 10F.
   Sem sobreposicao visual.
*/
 visual.
*/
