
/* ==========================================
   WRSAAS V2.2 — CADASTRO
   ========================================== */

* {
    box-sizing: border-box;
}

body.cadastro-page {
    margin: 0;
    min-height: 100vh;
    background: #f3f3f1;
    color: #171717;
    font-family: Arial, Helvetica, sans-serif;
}

.cadastro-layout {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
}

.cadastro-container {
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    width: 100%;
    max-width: 1280px;
    min-height: 610px;
    overflow: hidden;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 20px 65px rgba(0,0,0,.055);
}

/* PAINEL PRETO */

.cadastro-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 30px 38px;
    background: #111;
    color: #fff;
}

.cadastro-brand-top a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .16em;
}

.cadastro-brand-center {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.cadastro-brand-logo {
    display: block;
    width: min(100%, 290px);
    max-height: 290px;
    height: auto;
    object-fit: contain;
}

.cadastro-brand-bottom {
    font-size: 10px;
    letter-spacing: .12em;
    color: #8f8f8f;
    text-transform: uppercase;
}

/* PAINEL BRANCO */

.cadastro-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 30px clamp(28px, 4vw, 66px);
    background: #fff;
}

.cadastro-form-content {
    width: 100%;
    max-width: 390px;
}

.cadastro-heading {
    margin-bottom: 23px;
}

.cadastro-eyebrow {
    display: block;
    margin-bottom: 11px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    color: #858585;
}

.cadastro-heading h1 {
    margin: 0;
    font-size: clamp(32px, 3vw, 43px);
    line-height: 1.1;
    letter-spacing: -.055em;
    font-weight: 800;
}

.cadastro-heading p {
    margin: 10px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

/* FORMULÁRIO */

.cadastro-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cadastro-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cadastro-field label {
    font-size: 11px;
    font-weight: 700;
    color: #333;
}

.cadastro-field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e4e4e4;
    border-radius: 11px;
    outline: none;
    background: #fafafa;
    color: #171717;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s, background .2s;
}

.cadastro-field input::placeholder {
    color: #aaa;
}

.cadastro-field input:focus {
    border-color: #222;
    background: #fff;
}

.cadastro-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin-top: 5px;
    border: 0;
    border-radius: 11px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.cadastro-submit:hover {
    background: #303030;
    transform: translateY(-1px);
}

.cadastro-submit:focus-visible,
.cadastro-login-link a:focus-visible {
    outline: 2px solid #555;
    outline-offset: 3px;
}

/* GOOGLE E RODAPÉ */

.cadastro-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 4px 0 0;
    color: #999;
    font-size: 10px;
    white-space: nowrap;
}

.cadastro-divider::before,
.cadastro-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e9e9e9;
}

.cadastro-google {
    display: flex;
    justify-content: center;
    min-height: 40px;
}

.cadastro-login-link {
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid #ededed;
    text-align: center;
    color: #888;
    font-size: 12px;
}

.cadastro-login-link a {
    margin-left: 4px;
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.cadastro-login-link a:hover {
    text-decoration: underline;
}

.cadastro-footer {
    margin-top: 17px;
    text-align: center;
    color: #aaa;
    font-size: 10px;
}

/* ALERTAS */

.cadastro-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #f0caca;
    border-radius: 10px;
    background: #fff5f5;
    color: #9c2525;
    font-size: 12px;
    line-height: 1.5;
}

/* ANIMAÇÃO */

@keyframes cadastroLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cadastro-brand-logo {
        animation: cadastroLogoFloat 5s ease-in-out infinite;
    }
}

/* TABLET */

@media (max-width: 1050px) {
    .cadastro-container {
        grid-template-columns: .85fr 1fr;
    }

    .cadastro-brand-logo {
        max-width: 235px;
    }

    .cadastro-form-panel {
        padding: 28px;
    }
}

/* MOBILE */

@media (max-width: 720px) {
    .cadastro-layout {
        padding: 14px;
        align-items: flex-start;
    }

    .cadastro-container {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 25px;
    }

    .cadastro-brand-panel {
        min-height: 180px;
        padding: 20px 24px;
    }

    .cadastro-brand-top a {
        font-size: 12px;
    }

    .cadastro-brand-logo {
        width: 110px;
        max-height: 110px;
    }

    .cadastro-brand-bottom {
        font-size: 9px;
    }

    .cadastro-form-panel {
        padding: 30px 24px 24px;
    }

    .cadastro-heading h1 {
        font-size: 33px;
    }
}

@media (max-width: 380px) {
    .cadastro-layout {
        padding: 8px;
    }

    .cadastro-form-panel {
        padding: 24px 18px;
    }
}


/* ==========================================
   WRSAAS V2.2 — PADRONIZAÇÃO COM LOGIN
   ========================================== */

/* Cabeçalho do painel preto */

.cadastro-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cadastro-brand-top .cadastro-wordmark {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.cadastro-wordmark sup {
    position: relative;
    top: -0.5em;
    margin-left: 2px;
    font-size: 9px;
    letter-spacing: 0;
}

.cadastro-back-home {
    color: #bcbcbc !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.cadastro-back-home:hover {
    color: #fff !important;
}

/* Divisão arredondada entre os painéis */

.cadastro-form-panel {
    position: relative;
    z-index: 1;
    border-radius: 44px;
}

/* Responsividade */

@media (max-width: 1050px) {
    .cadastro-brand-top .cadastro-wordmark {
        font-size: 22px;
    }

    .cadastro-back-home {
        font-size: 10px !important;
    }
}

@media (max-width: 720px) {
    .cadastro-brand-top .cadastro-wordmark {
        font-size: 20px;
    }

    .cadastro-back-home {
        font-size: 9px !important;
    }

    .cadastro-form-panel {
        border-radius: 25px 25px 0 0;
    }
}



/* ==========================================
   WRSAAS V2.2 — DIVISÃO CENTRAL ARREDONDADA
   ========================================== */

@media (min-width: 721px) {

    .cadastro-container {
        background: #111;
    }

    .cadastro-form-panel {
        position: relative;
        z-index: 1;
        border-radius: 44px;
        background: #fff;
    }

}


/* ==========================================
   WRSAAS V2.2 — ACABAMENTO FINAL DOS PAINÉIS
   ========================================== */

@media (min-width: 721px) {

    .cadastro-container {
        background: linear-gradient(
            to right,
            #111 0%,
            #111 60%,
            #fff 60%,
            #fff 100%
        );
    }

    .cadastro-form-panel {
        background: #fff;
        border-radius: 44px;
    }

}

/* ==========================================
   WRSAAS V2.2 — DIVISÃO ARREDONDADA MOBILE
   ========================================== */

@media (max-width: 720px) {

    .cadastro-container {
        background: #111;
    }

    .cadastro-brand-panel {
        background: #111;
    }

    .cadastro-form-panel {
        position: relative;
        z-index: 1;
        background: #fff;

        border-radius: 28px 28px 0 0;
    }

}
