.cv-auth-form,
.cv-auth-form * {
    box-sizing: border-box;
}

.cv-auth-form {
    width: 100%;
    max-width: 405px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    font-family: inherit;
}

.cv-auth-field {
    position: relative;
    width: 100%;
    margin: 0 0 18px;
}

.cv-auth-field input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 36px 0 0;
    border: 0;
    border-bottom: 1px solid #e8e5ee;
    border-radius: 0;
    background: transparent;
    color: #332d3f;
    font-size: 13px;
    font-weight: 400;
    line-height: 38px;
    outline: none;
    box-shadow: none;
}

.cv-auth-field input::placeholder {
    color: #9c98a8;
    opacity: 1;
}

.cv-auth-field input:focus {
    border-bottom-color: #9b94df;
    box-shadow: none;
}

.cv-auth-field input:disabled {
    opacity: 1;
    color: #9c98a8;
    cursor: default;
}

.cv-auth-password-field input {
    padding-right: 42px;
}

.cv-auth-toggle-password {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: .58;
}

.cv-auth-toggle-password::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 2px;
    width: 18px;
    height: 11px;
    border-radius: 50%;
    background: #c9c6d0;
    clip-path: ellipse(50% 45% at 50% 50%);
}

.cv-auth-toggle-password::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.cv-auth-toggle-password.is-visible {
    opacity: .9;
}

.cv-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 28px;
    border: 0;
    border-radius: 5px;
    background: #9b94df;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.cv-auth-button:hover,
.cv-auth-button:focus {
    background: #8d85d8;
    color: #ffffff;
    transform: translateY(-1px);
}

.cv-auth-footer {
    margin: 14px 0 0;
    color: #5f5969;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.cv-auth-footer a {
    color: #9b94df;
    font-size: 11px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-auth-notice {
    width: 100%;
    max-width: 405px;
    margin: 0 auto 18px;
    padding: 12px 14px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.4;
}

.cv-auth-notice-external {
    position: relative;
    z-index: 2;
    max-width: none;
    margin: 0 0 20px;
}

.cv-auth-notice-error {
    background: #fff1f1;
    color: #9f1d1d;
    border: 1px solid #ffd1d1;
}

.cv-auth-notice-success {
    background: #eefaf3;
    color: #17613a;
    border: 1px solid #c7efd8;
}

.cv-auth-notice-info {
    background: #f3f1ff;
    color: #5b53b9;
    border: 1px solid #ddd9ff;
}

@media (max-width: 767px) {
    .cv-auth-form,
    .cv-auth-notice {
        max-width: 100%;
    }
}

/*
 * Layout unificado BioFeet para todos os shortcodes de autenticação.
 * A especificidade é intencional: neutraliza CSS personalizado do widget
 * Shortcode/Elementor sem alterar inputs ou botões de outros formulários.
 */
body .cv-auth-form.cv-login-form,
body .cv-auth-form.cv-register-form,
body .cv-auth-form.cv-lost-password-form,
body .cv-auth-form.cv-reset-password-form {
    --cv-auth-primary: #9b94df;
    --cv-auth-primary-hover: #8981d6;
    --cv-auth-text: #332d3f;
    --cv-auth-muted: #8f8a9b;
    --cv-auth-line: #ddd9e5;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body .cv-auth-form .cv-auth-field {
    position: relative !important;
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body .elementor .elementor-widget-shortcode .cv-auth-form .cv-auth-field > input:not([type="checkbox"]),
body .cv-auth-form.cv-login-form .cv-auth-field > input:not([type="checkbox"]),
body .cv-auth-form.cv-lost-password-form .cv-auth-field > input:not([type="checkbox"]),
body .cv-auth-form.cv-reset-password-form .cv-auth-field > input:not([type="checkbox"]) {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 8px 42px 8px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--cv-auth-line) !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--cv-auth-text) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    appearance: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, color .2s ease !important;
}

body .elementor .elementor-widget-shortcode .cv-auth-form .cv-auth-field > input:not([type="checkbox"])::placeholder,
body .cv-auth-form .cv-auth-field > input:not([type="checkbox"])::placeholder {
    color: var(--cv-auth-muted) !important;
    opacity: 1 !important;
}

body .elementor .elementor-widget-shortcode .cv-auth-form .cv-auth-field > input:not([type="checkbox"]):focus,
body .cv-auth-form .cv-auth-field > input:not([type="checkbox"]):focus {
    border-bottom-color: var(--cv-auth-primary) !important;
    box-shadow: 0 1px 0 var(--cv-auth-primary) !important;
}

body .cv-auth-form .cv-auth-password-field > input:not([type="checkbox"]) {
    padding-right: 46px !important;
}

body .cv-auth-form .cv-auth-toggle-password {
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    right: 4px !important;
    bottom: auto !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
}

body .cv-auth-form .cv-auth-toggle-password:hover,
body .cv-auth-form .cv-auth-toggle-password:focus {
    background: #f4f2fb !important;
    transform: translateY(-50%) !important;
}

body .cv-auth-form .cv-auth-remember {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: fit-content !important;
    margin: -2px 0 0 !important;
    color: #5f5969 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

body .cv-auth-form .cv-auth-remember input[type="checkbox"] {
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border: 1px solid #b9b5c2 !important;
    border-radius: 2px !important;
    background: #fff !important;
    box-shadow: none !important;
    accent-color: var(--cv-auth-primary) !important;
}

body .elementor .elementor-widget-shortcode form.cv-auth-form > button.cv-auth-button[type="submit"],
body form.cv-auth-form.cv-login-form > button.cv-auth-button[type="submit"],
body form.cv-auth-form.cv-register-form > button.cv-auth-button[type="submit"],
body form.cv-auth-form.cv-lost-password-form > button.cv-auth-button[type="submit"],
body form.cv-auth-form.cv-reset-password-form > button.cv-auth-button[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 28px 0 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: var(--cv-auth-primary) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    appearance: none !important;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

body .elementor .elementor-widget-shortcode form.cv-auth-form > button.cv-auth-button[type="submit"]:hover,
body .elementor .elementor-widget-shortcode form.cv-auth-form > button.cv-auth-button[type="submit"]:focus,
body form.cv-auth-form > button.cv-auth-button[type="submit"]:hover,
body form.cv-auth-form > button.cv-auth-button[type="submit"]:focus {
    background: var(--cv-auth-primary-hover) !important;
    box-shadow: 0 8px 18px rgba(108, 77, 230, .16) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

body .cv-auth-form .cv-auth-links {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 16px 0 0 !important;
    color: #a09aa9 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

body .cv-auth-form .cv-auth-links a,
body .cv-auth-form .cv-auth-footer a {
    color: var(--cv-auth-primary) !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

body .cv-auth-form .cv-auth-links a:hover,
body .cv-auth-form .cv-auth-links a:focus,
body .cv-auth-form .cv-auth-footer a:hover,
body .cv-auth-form .cv-auth-footer a:focus {
    color: var(--cv-auth-primary-hover) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

body .cv-auth-form .cv-auth-footer {
    width: 100% !important;
    margin: 16px 0 0 !important;
    color: #6f6878 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

body .cv-auth-notice {
    max-width: 440px !important;
    margin: 0 auto 22px !important;
    padding: 13px 15px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

body .cv-auth-notice-external {
    max-width: none !important;
    margin: 0 0 22px !important;
}

@media (max-width: 767px) {
    body .cv-auth-form.cv-login-form,
    body .cv-auth-form.cv-register-form,
    body .cv-auth-form.cv-lost-password-form,
    body .cv-auth-form.cv-reset-password-form,
    body .cv-auth-notice {
        max-width: 100% !important;
    }

    body .elementor .elementor-widget-shortcode form.cv-auth-form > button.cv-auth-button[type="submit"],
    body form.cv-auth-form > button.cv-auth-button[type="submit"] {
        min-height: 50px !important;
    }
}
