.pwd-field {
    position: relative;
}

.pwd-field__label {
    display: block;
    margin-bottom: 0.5rem;
}

.pwd-field__wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 0.375rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.pwd-field__wrap--caps {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45);
}

.pwd-field__wrap--lang {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}

.pwd-field__wrap--caps.pwd-field__wrap--lang {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45), 0 0 0 4px rgba(239, 68, 68, 0.25);
}

.pwd-field__input {
    flex: 1 1 auto;
    width: 100%;
    padding-right: 2.75rem !important;
}

.pwd-field__toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0 0.375rem 0.375rem 0;
    z-index: 2;
}

.pwd-field__toggle:hover {
    color: #2563eb;
}

.pwd-field__toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

.pwd-field__status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-top: 0.35rem;
    min-height: 1.25rem;
}

.pwd-field__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
}

.pwd-field__badge[hidden] {
    display: none !important;
}

.pwd-field__badge--caps {
    background: #fef3c7;
    color: #b45309;
}

.pwd-field__badge--lang {
    background: #fee2e2;
    color: #b91c1c;
}

.pwd-field__help {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.pwd-field__error {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc2626;
}

/* auth-custom совместимость */
.auth-form-group .pwd-field__input.auth-input {
    width: 100%;
}
