.ucd-auth-widget {
    width: 100%;
}

.ucd-auth-widget__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ucd-auth-widget__password-wrap {
    position: relative;
}

.ucd-auth-widget__toggle-password,
.ucd-auth-popup__close {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ucd-auth-widget__toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.ucd-auth-field-error {
    display: none;
    color: #d63638;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

.ucd-auth-field-error:not(:empty) {
    display: block;
}

.ucd-auth-widget__input,
.ucd-auth-widget__button {
    width: 100%;
}

.ucd-auth-widget__auth-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ucd-auth-widget__switch-link {
    text-decoration: underline;
}

.ucd-auth-widget__google-separator {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0;
}

.ucd-auth-widget__button--google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ucd-auth-widget__button--google-align-stretch {
    width: 100%;
}

.ucd-auth-widget__button--google-align-left {
    width: fit-content;
    margin-right: auto;
    margin-left: 0;
}

.ucd-auth-widget__button--google-align-center {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.ucd-auth-widget__button--google-align-right {
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
}

.ucd-auth-widget__google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ucd-auth-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.ucd-auth-popup[hidden] {
    display: none !important;
}

.ucd-auth-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ucd-auth-popup__dialog {
    position: relative;
    z-index: 1;
    margin: 60px auto;
    width: min(92vw, 460px);
    background: #fff;
    border-radius: 10px;
    padding: 22px;
}

.ucd-auth-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.ucd-auth-popup__title {
    margin: 0 0 14px;
}

.ucd-auth-popup__step {
    display: none;
}

.ucd-auth-popup__step.is-active {
    display: block;
}

.ucd-auth-popup-open {
    overflow: hidden;
}
