/* Auth Builder element frontend styles */

/* Password fields: inline eye toggle */
.tg-login .tg-pw-wrap {
    position: relative;
}

.tg-login .tg-pw-wrap .uk-input {
    padding-right: 45px;
}

.tg-login .tg-pw-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #999;
}

.tg-login .tg-pw-toggle:hover,
.tg-login .tg-pw-toggle:focus-visible {
    color: #333;
}

.tg-login .tg-pw-toggle .tg-pw-icon-hide {
    display: none;
}

.tg-login .tg-pw-toggle.tg-pw-visible .tg-pw-icon-hide {
    display: inline-flex;
}

.tg-login .tg-pw-toggle.tg-pw-visible .tg-pw-icon-show {
    display: none;
}

.tg-login .tg-pw-toggle span {
    display: inline-flex;
    line-height: 0;
}

/* Captcha row: strip foreign chrome from captcha plugin containers */
.tg-login .tg-login-captcha > .uk-form-controls > * {
    border: none;
    box-shadow: none;
}

/* Automatic-mode design templates: tidy card edges */
.tg-login-auto > :last-child,
.tg-login-auto form > :last-child {
    margin-bottom: 0;
}

/* Inline validation */
.tg-login .tg-field-error {
    margin-top: 6px;
    line-height: 1.4;
}

.tg-login .uk-form-success {
    border-color: #32d296;
}

/* Bridge for Bootstrap markup from injected form plugins (privacy etc.) */
.tg-login .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tg-login fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.tg-login .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.tg-login .form-check-input,
.tg-login .form-check-label {
    margin: 0;
}

.tg-login .form-check-input {
    flex: none;
    width: 16px;
    height: 16px;
}

.tg-login .form-check-label {
    cursor: pointer;
}

/* Segmented Toggle switcher style: compact pill with a white active segment */
.tg-login-segmented {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 4px;
    gap: 2px;
    background: #eceef2;
    border-radius: 999px;
}

.tg-login-segmented > li {
    margin: 0;
}

.tg-login-segmented > li > a {
    display: block;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tg-login-segmented > li > a:hover {
    color: #374151;
}

.tg-login-segmented > li.uk-active > a {
    background: #fff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tg-login-segmented > li.uk-active > a:hover {
    color: #111827;
}
