/* REDOR_ENTER_LOGIN_POLISH_SAFE_V2 */

/* Ordem visual sem movimentar elementos do DOM */
.redor-entry-card {
    display: flex;
    flex-direction: column;
}

.redor-entry-card > .redor-entry-logo { order: 1; }
.redor-entry-card > h1 { order: 2; }
.redor-entry-card > .redor-entry-description { order: 3; }
.redor-entry-card > .redor-entry-error { order: 4; }
.redor-entry-card > .redor-entry-google { order: 5; }
.redor-entry-card > .redor-entry-divider { order: 6; }
.redor-entry-card > p[role="status"] { order: 7; }
.redor-entry-card > form.auth-form { order: 8; }
.redor-entry-card > .redor-entry-bottom { order: 9; }

/* Google fica visivel nas duas etapas */
.redor-entry-card .redor-entry-google {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin: 0 0 5px;
}

.redor-entry-card .redor-entry-divider {
    margin: 17px 0 21px;
}

/* Labels acessiveis, mas visualmente ocultos */
.redor-entry-card .auth-field label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.redor-entry-card .auth-field {
    position: relative;
    min-width: 0;
}

/* Campo de email com icone SVG no estilo Lucide */
.redor-entry-card #email,
.redor-entry-card #emailCode {
    display: block;
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    border: 1px solid #e3e5e9;
    border-radius: 14px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 17px center;
    box-shadow: none;
    outline: none;
    color: #171b25;
    transition: border-color .18s, box-shadow .18s;
}

.redor-entry-card #email {
    font-size: 14px;
    padding: 0 14px 0 51px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23778191' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.redor-entry-card #email::placeholder {
    color: #949aa5;
    opacity: 1;
}

/* Codigo: prefixo R- apenas visual; backend recebe 6 digitos */
.redor-entry-card #emailCode {
    font: 750 23px ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .28em;
    text-align: center;
    padding: 0 10px 0 99px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23778191' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='11' x='5' y='11' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

.redor-entry-card .auth-field:has(#emailCode)::after {
    content: "R-";
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    font: 750 22px ui-monospace, SFMono-Regular, Consolas, monospace;
    color: #505766;
    pointer-events: none;
}

.redor-entry-card #email:focus,
.redor-entry-card #emailCode:focus {
    border-color: #ef3941;
    box-shadow: 0 0 0 4px rgba(239,57,65,.10);
}

/* CTA principal replica o acabamento ativo de .btn-cta-giant da home */
.redor-entry-card .auth-form .auth-primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    margin-inline: auto;
    padding: 12px 24px;
    border: 1px solid #b80b25;
    border-radius: 999px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    background: linear-gradient(115deg,#b80b25 0%,#e61b35 55%,#c70e2c 100%);
    box-shadow: 0 3px 12px #c70e2c26;
    cursor: pointer;
    transition: box-shadow .2s ease;
}

.redor-entry-card .auth-form .auth-primary svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.redor-entry-card .auth-form .auth-primary::before {
    content: "";
    position: absolute;
    top: -50%;
    bottom: -50%;
    left: -55%;
    width: 35%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg,transparent,#ffffff38,transparent);
    pointer-events: none;
    animation: redor-entry-cta-shine 4.5s ease-in-out infinite;
}

.redor-entry-card .auth-form .auth-primary:hover {
    box-shadow: 0 5px 16px #c70e2c40;
}

.redor-entry-card .auth-form .auth-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@keyframes redor-entry-cta-shine {
    0%,65% { left: -55%; }
    90%,100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
    .redor-entry-card .auth-form .auth-primary::before { animation: none; }
}

/* Acoes secundarias viram links, nao caixas brancas */
.redor-entry-card .auth-form .redor-login-link,
.redor-entry-card .auth-form .redor-login-back {
    display: block;
    width: fit-content;
    min-height: 0;
    margin: 0 auto;
    padding: 6px 8px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #737b87;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.redor-entry-card .auth-form .redor-login-link:hover,
.redor-entry-card .auth-form .redor-login-back:hover {
    color: #323b4a;
    text-decoration: underline;
}

/* Evita repetir o email que ja aparece no aviso */
.redor-entry-card form.auth-form:has(#emailCode) > p {
    display: none;
}

.redor-entry-card > p[role="status"] {
    margin: 0 0 19px;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width:480px) {
    .redor-entry-card #emailCode {
        font-size: 20px;
        letter-spacing: .18em;
    }
    .redor-entry-card #email {
        font-size: 13px;
    }
}
