/* Auth password / OTP fields with show-hide toggle */
.auth-secret-field {
    position: relative !important;
    display: block !important;
    width: 100%;
    isolation: isolate;
}

.auth-secret-field .auth-secret-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.75rem 2.75rem 0.75rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: inherit;
    color: #0f172a;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.auth-secret-field .auth-secret-input::placeholder {
    color: #94a3b8;
}

.auth-secret-field .auth-secret-input:focus {
    border-color: var(--primary-color, #ea580c);
}

/* Hide native browser password reveal (Edge/Chrome blue eye) */
.auth-secret-field .auth-secret-input::-ms-reveal,
.auth-secret-field .auth-secret-input::-ms-clear {
    display: none;
}

.auth-secret-field .auth-secret-input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none;
    pointer-events: none;
}

.auth-secret-field .auth-secret-input::-webkit-textfield-decoration-container {
    display: none !important;
}

.auth-secret-field .auth-secret-input[type="password"]::-webkit-reveal {
    display: none;
}

.auth-secret-field .auth-secret-toggle {
    position: absolute;
    right: 0.75rem;
    top: 0;
    bottom: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin: auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.auth-secret-field .auth-secret-toggle:hover {
    color: #334155;
}

.auth-secret-field .auth-secret-toggle:focus {
    outline: none;
}

.auth-secret-field .auth-secret-toggle:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.45);
    outline-offset: 1px;
    border-radius: 2px;
}

.auth-secret-field .auth-secret-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.auth-secret-field .auth-secret-icon-hidden {
    display: none !important;
}

/* Invisible larger click area */
.auth-secret-field .auth-secret-toggle::after {
    content: "";
    position: absolute;
    inset: -0.5rem;
}

/* Login page — match email field padding (px-4 py-3) */
.auth-secret-field.auth-secret-field--login .auth-secret-input {
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border-radius: 0.375rem;
}

.auth-secret-field.auth-secret-field--login .auth-secret-toggle {
    right: 1rem;
}
