/*
 * Full Path: /home/u339835642/domains/carpravas.co.in/public_html/assets/common/css/password.css
 * Purpose: Dedicated password field and eye-button styling shared by all CarPravas roles.
 */

.password-control {
    position: relative;
    display: block;
    width: 100%;
}

.password-control > input {
    width: 100%;
    padding-right: 58px;
}

.password-visibility {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, color .2s ease;
}

.password-visibility:hover,
.password-visibility:focus-visible {
    background: var(--surface-2);
    color: var(--primary);
    outline: none;
}

.password-icon {
    position: relative;
    display: block;
    width: 21px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 50%;
    pointer-events: none;
}

.password-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.password-visibility.is-visible .password-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 27px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 0 2px var(--surface);
}

/* Desktop / Laptop: 1024px and above */
@media (min-width: 1024px) {
    .password-visibility {
        width: 38px;
        height: 38px;
    }
}

/* Tablet: 600px to 1023px */
@media (min-width: 600px) and (max-width: 1023px) {
    .password-visibility {
        width: 40px;
        height: 40px;
    }
}

/* Mobile: up to 599px */
@media (max-width: 599px) {
    .password-control > input {
        padding-right: 56px;
    }

    .password-visibility {
        width: 40px;
        height: 40px;
        right: 7px;
    }
}
