.jb-suite-link {
    float: right;
    font-size: 14px;
}

.jb-suite-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.jb-suite-field-row .jb-suite-link {
    float: none;
    margin-left: auto;
    text-align: right;
}

.jb-suite-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jb-suite-checkbox-input {
    margin: 0;
}

.jb-suite-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.jb-suite-password-field input {
    width: 100%;
    padding-right: 42px;
}

.jb-suite-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.jb-suite-icon {
    display: none;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
}

.jb-suite-icon-eye {
    display: inline-block;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8Z'/><circle cx='12' cy='12' r='3'/></svg>");
}

.jb-suite-icon-eye-off {
    display: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.8 10.8a3 3 0 0 0 4.2 4.2'/><path d='M9.5 4.5A10.7 10.7 0 0 1 12 4c7 0 11 8 11 8a19 19 0 0 1-4.4 5.6'/><path d='M3 3l18 18'/><path d='M5.1 5.1A19 19 0 0 0 1 12s4 8 11 8a10.7 10.7 0 0 0 4.4-.9'/></svg>");
}

.jb-suite-password-toggle[aria-pressed="true"] .jb-suite-icon-eye {
    display: none;
}

.jb-suite-password-toggle[aria-pressed="true"] .jb-suite-icon-eye-off {
    display: inline-block;
}

.jb-suite-password-toggle[aria-pressed="false"] .jb-suite-icon-eye {
    display: inline-block;
}

.jb-suite-password-toggle[aria-pressed="false"] .jb-suite-icon-eye-off {
    display: none;
}

@media (max-width: 640px) {
    .jb-suite-field-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .jb-suite-field-row .jb-suite-checkbox {
        width: 100%;
    }

    .jb-suite-field-row .jb-suite-link {
        margin-left: 0;
        width: 100%;
        font-size: 14px;
        text-align: right;
    }
}
