* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f7f9fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recovery-wrapper {
    /* Centraliza o cartão de recuperação e deixa o rodapé fora da área principal. */
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
}

.card-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px 35px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.brand-link {
    font-size: 2.4rem;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.brand-link span {
    color: #004aad;
}

.card-box h1,
.title-page {
    font-size: 1.6rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
}

.subtitle {
    color: #888888;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: left;
}

.alert {
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-align: center;
}

.alert-error {
    background-color: #fde8e8;
    color: #e53e3e;
}

.alert-success {
    background-color: #def7ec;
    color: #03543f;
}

.input-block {
    text-align: left;
    margin-bottom: 20px;
}

.input-block label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #000000;
    margin-bottom: 8px;
}

.input-icon-field,
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-field .icon-mail {
    position: absolute;
    left: 14px;
    font-size: 1.2rem;
    color: #000000;
}

.input-icon-field input {
    padding-left: 42px;
}

.input-block input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #000000;
    border-radius: 18px;
    font-size: 1rem;
    outline: none;
}

.password-wrapper input {
    padding-right: 42px;
}

.eye-toggle {
    position: absolute;
    right: 14px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.eye-toggle .toggle-password-eye {
    width: 22px;
    height: auto;
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.eye-toggle:hover .toggle-password-eye,
.eye-toggle.active .toggle-password-eye {
    opacity: 0.9;
}

.eye-toggle:hover .toggle-password-eye {
    transform: scale(1.05);
}

.eye-toggle:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgba(0, 74, 173, 0.25);
    outline-offset: 2px;
}

/* Estrutura das 6 Caixas do Código */
.code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px 0;
}

.code-input {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 1.4rem !important;
    font-weight: 800;
    color: #333333;
    border: 1.5px solid #000000 !important;
    border-radius: 12px !important;
    outline: none;
    padding: 0 !important;
}

.code-input:focus {
    border-color: #004aad !important;
    box-shadow: 0 0 5px rgba(0, 74, 173, 0.3);
}

.code-separator {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
}

.resend-block {
    font-size: 0.85rem;
    color: #004aad;
    margin-bottom: 25px;
    text-align: left;
}

.link-resend {
    background: none;
    border: none;
    color: #004aad;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}

.link-resend:disabled {
    color: #aaa;
    cursor: not-allowed;
    text-decoration: none;
}

/* Checklist da Senha */
.checklist {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.check-item {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-invalid {
    color: #555555;
}

.check-valid {
    color: #10b981;
}

/* Botões */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.btn-single-group {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
    background-color: #004aad;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #00357a;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-cadastrar {
    width: 65%;
    border-radius: 25px;
}

/* Estado de Bloqueio/Desativado */
.btn:disabled,
.btn-primary:disabled {
    background-color: #002a66;
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.recovery-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #000000;
    font-weight: 600;
    padding: 20px;
}

.recovery-footer span {
    color: #004aad;
}
