.recriando-auth-wrap,
.recriando-auth-wrap * {
    box-sizing: border-box;
}

.recriando-auth-wrap {
    max-width: 480px;
    margin: 0 auto;
    /* Espaço inferior para widgets flutuantes (WhatsApp, chat) não cobrirem o botão */
    padding-bottom: 80px;
}

.recriando-auth-user {
    overflow-wrap: break-word;
    word-break: break-word;
    position: relative;
    z-index: 1;
}

.recriando-auth-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
}

.recriando-auth-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2e6c;
    margin: 0 0 8px;
    display: block;
    line-height: 1.3;
}

.recriando-auth-subtitle,
.recriando-auth-text {
    font-size: 13px;
    color: #666;
    margin: 0 0 24px;
    display: block;
    line-height: 1.5;
}

.recriando-auth-text {
    margin-bottom: 16px;
}

.recriando-auth-field {
    margin-bottom: 16px;
}

.recriando-auth-field-tight {
    margin-bottom: 6px;
}

.recriando-auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a2e6c;
    margin-bottom: 6px;
}

.recriando-auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    /* 16px evita o auto-zoom do Safari iOS ao tocar no campo; 48px = alvo de toque confortável */
    font-size: 16px;
    min-height: 48px;
    background: #fff;
}

.recriando-auth-password {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    height: 48px;
    /* Focus ring no container em vez do input (overflow:hidden cortava o outline) */
    transition: border-color .15s;
}

.recriando-auth-password:focus-within {
    border-color: #f47c20;
    outline: 2px solid rgba(244, 124, 32, 0.25);
    outline-offset: 1px;
}

.recriando-auth-password .recriando-auth-input {
    flex: 1;
    border: 0;
    border-radius: 0;
    height: 100%;
    outline: none;
    background: transparent;
}

.recriando-auth-toggle {
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* !important: tema Elementor sobrescreve botões com cor azul */
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    border: 0 !important;
    border-left: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 16px;
    color: #1a2e6c !important;
    padding: 0;
    outline: none;
}

.recriando-auth-toggle.is-visible {
    background: #d1e7dd;
}

.recriando-auth-forgot {
    text-align: right;
    margin-bottom: 20px;
}

.recriando-auth-link {
    color: #f47c20;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.recriando-auth-link:hover {
    color: #d96a15;
}

.recriando-auth-submit,
.recriando-auth-primary-link {
    /* !important: evita que tema/Elementor sobreescreva cor do botão */
    background: #f47c20 !important;
    background-color: #f47c20 !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-align: center;
    text-decoration: none !important;
    /* block é mais seguro que inline-block com width:100% em mobile */
    display: block;
    box-sizing: border-box;
}

.recriando-auth-submit:hover,
.recriando-auth-primary-link:hover {
    background: #d96a15 !important;
    background-color: #d96a15 !important;
}

.recriando-auth-form.is-submitting .recriando-auth-submit {
    position: relative;
    opacity: .85;
    cursor: wait;
    padding-left: 44px;
}

.recriando-auth-form.is-submitting .recriando-auth-submit::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 18px;
    top: 50%;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-top-color: #fff;
    border-radius: 50%;
    animation: recriando-auth-spin .7s linear infinite;
}

.recriando-auth-form.is-submitting .recriando-auth-submit:disabled {
    background: #d96a15;
}

@keyframes recriando-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.recriando-auth-secondary-link {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border: 1px solid #1a2e6c;
    color: #1a2e6c;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.recriando-auth-secondary-link:hover {
    background: #1a2e6c;
    color: #fff;
}

.recriando-auth-spaced {
    margin-top: 8px;
}

.recriando-auth-divider {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin: 16px 0 20px;
}

.recriando-auth-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.recriando-auth-message strong {
    display: block;
    margin-bottom: 4px;
}

.recriando-auth-message-error {
    background: #fff5f5;
    color: #cc0000;
    border: 1px solid #cc0000;
}

.recriando-auth-message-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #276749;
}

.recriando-auth-message-warning {
    background: #fff9e6;
    color: #444;
    border-left: 4px solid #f47c20;
}

.recriando-auth-status {
    text-align: center;
    padding: 30px;
    background: #fff;
    color: #444;
    border-radius: 8px;
}

.recriando-auth-status-muted {
    background: #f9f9f9;
    color: #666;
}

.recriando-auth-status-error {
    background: #fff5f5;
    border: 1px solid #cc0000;
}

.recriando-auth-status-dashed {
    border: 2px dashed #f47c20;
}

.recriando-auth-status-title {
    color: #cc0000;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.recriando-auth-status-title-orange {
    color: #f47c20;
    font-size: 16px;
}

.recriando-auth-user {
    margin-bottom: 16px;
    font-size: 15px;
    color: #444;
}

.recriando-auth-user strong {
    color: #1a2e6c;
}

.recriando-auth-rules {
    padding: 15px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 24px;
}

.recriando-auth-rules ul {
    margin: 0;
    padding-left: 18px;
}

.recriando-auth-back {
    text-align: center;
    margin-top: 20px;
}

.recriando-auth-save {
    padding: 14px;
    font-size: 15px;
}

@media (max-width: 480px) {
    .recriando-auth-wrap { padding: 0 8px; }
    .recriando-auth-card { padding: 1.25rem; }
    .recriando-auth-title { font-size: 18px; }
    .recriando-auth-rules { padding: 10px 12px; }
    .recriando-auth-status { padding: 20px 14px; }
}
