/* Shared login / register form fields */
.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.password-field .password-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 48px 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 18, 30, 0.95);
    color: #eff7ff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.password-field .password-input:focus {
    outline: none;
    border-color: rgba(29, 155, 240, 0.85);
    box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.12);
}

/* Hide browser built-in password reveal (stops double eye on desktop) */
.password-field .password-input::-ms-reveal,
.password-field .password-input::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Keep native password / Keychain affordances visible for mobile save & autofill. */

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #8ea5c3;
    cursor: pointer;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

.pw-toggle:hover,
.pw-toggle:focus-visible {
    color: #e5ecf8;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.pw-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
}

.pw-toggle .pw-icon-hide {
    display: none;
}

.pw-toggle.is-visible .pw-icon-show {
    display: none;
}

.pw-toggle.is-visible .pw-icon-hide {
    display: block;
}