.wa-auth {
    margin-top: 1rem;
}

.wa-auth__primary {
    align-items: center;
    background: #17a653;
    border: 1px solid #138845;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(23, 166, 83, 0.18);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    gap: 0.7rem;
    justify-content: center;
    min-height: 52px;
    padding: 0.8rem 1rem;
    transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
    width: 100%;
}

.wa-auth__primary:hover,
.wa-auth__primary:focus-visible {
    background: #128543;
    box-shadow: 0 10px 24px rgba(23, 166, 83, 0.24);
    transform: translateY(-1px);
}

.wa-auth__icon,
.wa-auth__icon svg {
    display: block;
    height: 25px;
    width: 25px;
}

.wa-auth__panel {
    background: #f7fffa;
    border: 1px solid #cdeedb;
    border-radius: 8px;
    margin-top: 0.85rem;
    padding: 1rem;
}

.wa-auth__intro {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.wa-auth__intro span {
    color: #5d6b66;
    font-size: 0.9rem;
}

.wa-auth__phone {
    align-items: stretch;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
}

.wa-auth__phone > span {
    align-items: center;
    background: #edf4f0;
    border: 1px solid #ced8d3;
    border-radius: 6px 0 0 6px;
    display: flex;
    font-weight: 700;
    padding: 0 0.75rem;
}

.wa-auth__phone .form-control {
    border-radius: 0 6px 6px 0;
    min-width: 0;
}

.wa-auth__send,
.wa-auth__verify {
    background: #075e54;
    border-color: #075e54;
    color: #fff;
    font-weight: 700;
    min-height: 46px;
}

.wa-auth__send:hover,
.wa-auth__verify:hover {
    background: #064b44;
    border-color: #064b44;
    color: #fff;
}

.wa-auth__otp {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
}

.wa-auth__resend {
    background: transparent;
    border: 0;
    color: #075e54;
    cursor: pointer;
    display: block;
    font-weight: 700;
    margin: 0.75rem auto 0;
    padding: 0.3rem;
}

.wa-auth__resend:disabled {
    color: #7b8782;
    cursor: default;
}

.wa-auth__status {
    color: #b42318;
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
    min-height: 1.35rem;
}

.wa-auth__status.is-success {
    color: #08783e;
}

.auth-divider {
    align-items: center;
    color: #78837e;
    display: flex;
    font-size: 0.82rem;
    gap: 0.75rem;
    margin: 1.25rem 0;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    background: #dce3df;
    content: "";
    flex: 1;
    height: 1px;
}

@media (max-width: 575.98px) {
    .wa-auth__panel {
        padding: 0.85rem;
    }
}

.wa-form-phone {
    align-items: stretch;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.wa-form-phone > span:first-child {
    align-items: center;
    background: #edf4f0;
    border: 1px solid #ced8d3;
    border-radius: 6px 0 0 6px;
    display: flex;
    font-weight: 700;
    padding: 0 0.75rem;
}

.wa-form-phone .form-control {
    border-radius: 0 6px 6px 0;
    min-width: 0;
}

.wa-form-verified {
    align-items: center;
    background: #dcfce7;
    border: 1px solid #86d7a5;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    color: #08783e;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 0.7rem;
}

.wa-form-phone:has(.wa-form-verified:not([hidden])) .form-control {
    border-radius: 0;
}

.wa-form-otp {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.wa-form-otp .wa-auth__verify {
    min-height: 48px;
    padding-inline: 1.25rem;
}

.auth-password {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.auth-password .form-control {
    border-radius: 6px 0 0 6px;
    min-width: 0;
}

.auth-password__toggle {
    background: #f4f7f6;
    border: 1px solid #ced8d3;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    color: #075e54;
    cursor: pointer;
    display: grid;
    min-width: 48px;
    padding: 0;
    place-items: center;
    position: relative;
    width: 48px;
}

.auth-password__toggle:hover,
.auth-password__toggle:focus-visible {
    background: #e9f5ef;
    color: #064b44;
}

.auth-password__eye {
    border: 2px solid currentColor;
    border-radius: 72% 16%;
    display: block;
    height: 13px;
    position: relative;
    transform: rotate(45deg);
    width: 19px;
}

.auth-password__eye::after {
    background: currentColor;
    border-radius: 50%;
    content: "";
    height: 5px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
}

.auth-password__toggle.is-visible::after {
    border-top: 2px solid currentColor;
    content: "";
    position: absolute;
    transform: rotate(-45deg);
    width: 24px;
}

@media (max-width: 575.98px) {
    .wa-form-otp {
        grid-template-columns: 1fr;
    }
}
