/* Password recovery shared styles */

.form-input.input-error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

/* Form layout helpers */
.reset-password-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.reset-password-form .form-group {
    margin-bottom: 0;
}

.form-footer {
    margin-top: 24px;
    text-align: center;
}

.form-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-mid);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: var(--blue-dark);
}

.reset-card .btn-submit {
    margin-top: 4px;
}

.reset-card .form-footer {
    margin-top: 28px;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-wrapper:focus-within {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(15, 82, 160, 0.12);
}

.password-wrapper .form-input {
    flex: 1 1 auto;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 15px;
}

.password-wrapper .form-input:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.password-toggle-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 40px;
    width: 40px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: var(--blue-dark);
    background-color: rgba(15, 82, 160, 0.08);
    outline: none;
}

.password-toggle-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(15, 82, 160, 0.25);
    border-radius: 8px;
}

.password-toggle-btn i {
    font-size: 16px;
}

.password-wrapper.has-error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

