/*
 * Password field unification styles
 * ------------------------------------------------------------
 * These rules ensure every password input shares the same
 * structure, spacing and validation behavior regardless of
 * the page (login, register, reset, settings, etc.).
 */
:root {
    --password-toggle-size: 2.5rem;
    --password-toggle-padding: 3.25rem;
}

/*
 * Shared responsive grid for password inputs so Login/Cadastro
 * stay aligned as two equal columns when space allows.
 */
.password-fields-row {
    row-gap: 1rem;
}

.password-field {
    width: 100%;
}

.password-field-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-control {
    width: 100%;
    padding-right: var(--password-toggle-padding);
    min-height: 3.125rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    width: var(--password-toggle-size);
    height: var(--password-toggle-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--solar-orange, #ff6b35);
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.35);
    outline-offset: 2px;
}

.password-toggle:hover,
.password-toggle:focus {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.35);
}

.password-toggle [data-password-icon] {
    pointer-events: none;
}

.password-wrapper:focus-within {
    box-shadow: 0 0 0 0.15rem rgba(255, 107, 53, 0.15);
    border-radius: 0.75rem;
}

.password-strength-container {
    display: block;
    width: 100%;
    margin-top: 4px;
    line-height: 1.25;
}

.password-field-validation,
.text-danger.small {
    display: block !important;
    width: 100%;
    margin-top: 4px;
    font-size: 0.85rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    position: static;
}
