/* Form fields: input and label styles shared across pages */

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.field input[type="text"],
.field input[type="password"],
.field input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.field input:hover:not([readonly]) { border-color: var(--border-strong); }
.field input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.field input[readonly] {
    color: var(--text-muted);
    cursor: not-allowed;
    background: var(--bg);
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--bg-subtle) inset;
    transition: background-color 9999s ease-out;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.password-toggle:hover { color: var(--text); background: var(--bg-subtle); }
.password-toggle:focus-visible { outline: none; color: var(--text); box-shadow: 0 0 0 2px var(--focus-ring); }
.password-toggle .eye-closed { display: none; }
.password-toggle.revealed .eye-open { display: none; }
.password-toggle.revealed .eye-closed { display: block; }
