.cadastro-page {
    background: #0b100d;
    color: #e5e7eb;
    color-scheme: dark;
}

.cadastro-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px;
    background:
        radial-gradient(
            ellipse at top,
            #173523 0%,
            #0b100d 65%
        );
}

.cadastro-shell * {
    box-sizing: border-box;
}

.cadastro-panel {
    width: 100%;
    max-width: 620px;
    background: #111a14;
    border: 1px solid #293b30;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 20px 70px #0005;
}

.cadastro-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid #293b30;
    margin-bottom: 24px;
}

.cadastro-logo {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: #173b25;
    color: #4ade80;
}

.cadastro-logo svg {
    width: 30px;
    height: 30px;
}

.cadastro-brand strong {
    display: block;
    font-size: 20px;
    color: #fff;
}

.cadastro-brand small,
.cadastro-intro,
.cadastro-ajuda,
.cadastro-footer {
    color: #a1b0a5;
    font-size: 13px;
}

.cadastro-panel h1 {
    margin: 0 0 8px;
    font-size: 30px;
    color: #fff;
}

.cadastro-intro {
    margin-bottom: 24px;
    line-height: 1.6;
}

.cadastro-panel fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 26px;
    min-width: 0;
}

.cadastro-panel legend {
    color: #4ade80;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid #293b30;
}

.cadastro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cadastro-campo {
    margin-bottom: 15px;
    min-width: 0;
}

.cadastro-campo > label,
.cadastro-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 8px;
}

.cadastro-campo input:not([type="radio"]),
.cadastro-campo select {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 10px 12px;
    border: 1px solid #37473d;
    border-radius: 9px;
    background: #0c130f;
    color: #f3f4f6;
    font-size: 16px;
}

.cadastro-campo input::placeholder {
    color: #829087;
    opacity: 1;
}

.cadastro-campo input:focus,
.cadastro-campo select:focus {
    outline: 2px solid #22c55e;
    outline-offset: 1px;
}

.cadastro-campo input[aria-invalid="true"] {
    border-color: #f87171;
}

.cadastro-campo .cadastro-opcao {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #37473d;
    border-radius: 9px;
    cursor: pointer;
}

.cadastro-opcao input,
.cadastro-termos input {
    accent-color: #22c55e;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cadastro-password {
    position: relative;
}

.cadastro-password input {
    padding-right: 85px !important;
}

.cadastro-mostrar {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #86efac;
    padding: 8px;
    cursor: pointer;
}

.cadastro-termos {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0;
    font-size: 13px;
    line-height: 1.5;
}

.cadastro-enviar {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: #22c55e;
    color: #052e16;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.cadastro-enviar:hover:not(:disabled) {
    background: #4ade80;
}

.cadastro-panel fieldset:disabled {
    opacity: .65;
}

.cadastro-panel :disabled {
    cursor: not-allowed;
}

.cadastro-aviso {
    border: 1px solid #665225;
    background: #292414;
    color: #fde68a;
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cadastro-erro {
    display: block;
    color: #fca5a5;
    font-size: 13px;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.cadastro-login,
.cadastro-footer {
    text-align: center;
}

.cadastro-login {
    font-size: 14px;
}

.cadastro-login a {
    color: #4ade80;
    font-weight: 600;
}

.cadastro-footer {
    border-top: 1px solid #293b30;
    margin-top: 24px;
    padding-top: 20px;
}

@media (max-width: 560px) {

    .cadastro-shell {
        padding: 12px;
    }

    .cadastro-panel {
        padding: 20px;
        border-radius: 16px;
    }

    .cadastro-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cadastro-panel h1 {
        font-size: 26px;
    }

    .cadastro-brand strong {
        font-size: 18px;
    }

}

/* Refinamento visual do cadastro */

.cadastro-page .cadastro-brand {
    background: transparent;
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 22px;
}

.cadastro-page .cadastro-panel {
    color: #e5e7eb;
}

.cadastro-page .cadastro-password {
    position: relative;
    display: block;
    width: 100%;
}

.cadastro-page .cadastro-password input {
    display: block;
    width: 100%;
    padding-right: 90px !important;
}

.cadastro-page .cadastro-password .cadastro-mostrar {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 65px;
    max-width: 80px;
    height: 34px;
    margin: 0;
    padding: 4px 8px;
    top: 50%;
    right: 6px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    background: transparent;
    box-shadow: none;
    border: 0;
    color: #86efac;
    font-size: 12px;
    line-height: 1;
}

.cadastro-page .cadastro-panel fieldset:disabled {
    opacity: .85;
}

.cadastro-page .cadastro-campo input:disabled,
.cadastro-page .cadastro-campo select:disabled {
    opacity: .8;
}

.cadastro-page .cadastro-campo > label,
.cadastro-page .cadastro-label {
    font-size: 14px;
}

.cadastro-page .cadastro-intro {
    font-size: 14px;
}

.cadastro-page .cadastro-footer {
    background: transparent;
    position: static;
    box-shadow: none;
}

@media (max-width: 560px) {

    .cadastro-page .cadastro-shell {
        padding: 10px;
    }

    .cadastro-page .cadastro-panel {
        padding: 18px;
    }

    .cadastro-page .cadastro-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cadastro-page .cadastro-brand small {
        font-size: 11px;
    }

    .cadastro-page .cadastro-enviar {
        min-height: 50px;
    }

}
