:root {
    --wg-auth-blue: #048ce2;
    --wg-auth-blue-dark: #0278c4;
    --wg-auth-ink: #18283d;
    --wg-auth-muted: #65778d;
    --wg-auth-line: #dbe6f0;
    --wg-auth-soft: #eef8ff;
}

.wg-auth-page .aiz-main-wrapper > .bg-white { overflow: hidden; }

.wg-auth {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    padding: 64px 0 72px;
    background: #f5f9fc;
}

.wg-auth__backdrop {
    position: absolute;
    z-index: -2;
    inset: 0 0 auto;
    height: 284px;
    background: linear-gradient(90deg,rgba(12, 134, 227, 1) 0%, rgb(61, 99, 130) 50%, rgba(12, 134, 227, 1) 100%), url('../img/cover-place.jpg') center 42% / cover no-repeat;
}

.wg-auth__backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .40;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.45) 1px, transparent 0);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.wg-auth__container { display: flex; justify-content: center; }

.wg-auth-card {
    width: 100%;
    max-width: 570px;
    overflow: hidden;
    border: 1px solid rgba(219,230,240,.92);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15,42,65,.14);
}

.wg-auth-card--register { max-width: 720px; }

.wg-auth-card__intro {
    padding: 34px 38px 28px;
    text-align: center;
    border-bottom: 1px solid #e8eff5;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.wg-auth-card__icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    color: var(--wg-auth-blue);
    background: #e9f6ff;
}

.wg-auth-card__icon svg,
.wg-auth-input > svg,
.wg-auth-password-toggle svg,
.wg-account-type__options svg,
.wg-human-check__shield svg {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wg-auth-card__icon svg { width: 28px; height: 28px; stroke-width: 1.7; }
.wg-auth-card__eyebrow { margin: 0 0 8px; color: var(--wg-auth-blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.wg-auth-card h1 { margin: 0; color: var(--wg-auth-ink); font-size: clamp(30px,4vw,32px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.wg-auth-card__lead { max-width: 490px; margin: 2px auto 0; color: var(--wg-auth-muted); font-size: 14px; font-weight: 400; line-height: 1.65; }
.wg-auth-form { padding: 32px 38px 28px; }
.wg-auth-field { margin-bottom: 18px; }
.wg-auth-field > label, .wg-auth-label-row label, .wg-account-type legend { display: block; margin: 0 0 7px; color: #2b3c50; font-size: 12px; font-weight: 700; }
.wg-auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wg-auth-label-row a { margin-bottom: 7px; color: var(--wg-auth-blue); font-size: 11px; font-weight: 650; }

.wg-auth-input {
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid #cfdeeb;
    border-radius: 7px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wg-auth-input:focus-within { border-color: var(--wg-auth-blue); box-shadow: 0 0 0 3px rgba(4,140,226,.12); }
.wg-auth-input.is-invalid { border-color: #dc3545; }
.wg-auth-input > svg { flex: 0 0 auto; width: 19px; height: 19px; margin-left: 15px; color: #8ba0b5; stroke-width: 1.6; }
.wg-auth-input input { min-width: 0; width: 100%; height: 48px; padding: 0 13px; border: 0; outline: 0; color: var(--wg-auth-ink); font-size: 13px; font-weight: 450; background: transparent; }
.wg-auth-input input::placeholder { color: #9aabba; }

.wg-auth-password-toggle {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-right: 4px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #8094a7;
    background: transparent;
    cursor: pointer;
}

.wg-auth-password-toggle:hover, .wg-auth-password-toggle:focus-visible { color: var(--wg-auth-blue); background: #eef7fd; outline: 0; }
.wg-auth-password-toggle svg { width: 19px; height: 19px; stroke-width: 1.6; }
.wg-auth-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.wg-account-type { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.wg-account-type__options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.wg-account-type__options label { margin: 0; cursor: pointer; }
.wg-account-type__options input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.wg-account-type__options span {
    display: grid;
    min-height: 82px;
    padding: 13px 12px;
    place-items: center;
    align-content: center;
    border: 1px solid #cfdeeb;
    border-radius: 8px;
    color: #4d6074;
    text-align: center;
    background: #fff;
    transition: .2s ease;
}

.wg-account-type__options svg { width: 21px; height: 21px; margin-bottom: 5px; stroke-width: 1.65; }
.wg-account-type__options strong { color: var(--wg-auth-ink); font-size: 13px; }
.wg-account-type__options small { margin-top: 1px; font-size: 10px; font-weight: 500; }
.wg-account-type__options input:checked + span { border-color: var(--wg-auth-blue); color: var(--wg-auth-blue); background: var(--wg-auth-soft); box-shadow: inset 0 0 0 1px var(--wg-auth-blue); }
.wg-account-type__options input:focus-visible + span { box-shadow: 0 0 0 3px rgba(4,140,226,.15); }

.wg-human-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 8px;
    padding: 13px 14px;
    border: 1px solid #cfe5f4;
    border-radius: 8px;
    background: #f2faff;
}

.wg-human-check.is-invalid { border-color: #dc3545; }
.wg-human-check__copy { display: flex; min-width: 0; align-items: center; gap: 10px; }
.wg-human-check__copy > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.wg-human-check__copy strong { color: #22374b; font-size: 11px; line-height: 1.4; }
.wg-human-check__copy small { margin-top: 2px; color: #59748b; font-size: 12px; font-weight: 600; }
.wg-human-check__shield { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--wg-auth-blue); background: #fff; }
.wg-human-check__shield svg { width: 19px; height: 19px; stroke-width: 1.7; }

.wg-human-check__answer {
    flex: 0 0 105px;
    width: 105px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #bfd7e8;
    border-radius: 6px;
    outline: 0;
    color: #18283d7a;
    text-align: center;
    font-size: 12px;
    font-weight: 450;
    background: #fff;
}

.wg-human-check__answer:focus { border-color: var(--wg-auth-blue); box-shadow: 0 0 0 3px rgba(4,140,226,.12); }
.wg-auth-error { display: block; margin-top: 5px; color: #c92a3a; font-size: 11px; font-weight: 550; }
.wg-auth-error--captcha { margin: 0 0 12px; }
.wg-auth-error--grid { margin: -12px 0 17px; }
.wg-auth-error--password { margin: -11px 0 18px; }
.wg-auth-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.wg-auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #bfe7d8;
    border-radius: 7px;
    color: #266b55;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.55;
    background: #effaf6;
}

.wg-auth-notice svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wg-auth-remember, .wg-auth-terms { display: flex; align-items: flex-start; gap: 8px; margin: 15px 0 20px; color: #617387; font-size: 11px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.wg-auth-remember input, .wg-auth-terms input { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; accent-color: var(--wg-auth-blue); }
.wg-auth-terms a { color: var(--wg-auth-blue); font-weight: 650; }

.wg-auth-submit {
    width: 100%;
    min-height: 49px;
    padding: 11px 20px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    background: var(--wg-auth-blue);
    box-shadow: 0 9px 22px rgba(4,140,226,.22);
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.wg-auth-submit:hover, .wg-auth-submit:focus-visible { color: #fff; background: var(--wg-auth-blue-dark); box-shadow: 0 11px 25px rgba(4,140,226,.3); transform: translateY(-1px); outline: 0; }
.wg-auth-divider { display: flex; align-items: center; gap: 12px; margin: 23px 0 14px; color: #8697a8; font-size: 10px; font-weight: 600; }
.wg-auth-divider::before, .wg-auth-divider::after { content: ''; height: 1px; flex: 1; background: #e2eaf1; }
.wg-auth-social ul { display: flex; justify-content: center; gap: 9px; margin: 0; padding: 0; list-style: none; }
.wg-auth-social a { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #dbe5ee; border-radius: 50%; color: #53687c; font-size: 17px; background: #fff; transition: .2s ease; }
.wg-auth-social a:hover, .wg-auth-social a:focus-visible { border-color: var(--wg-auth-blue); color: var(--wg-auth-blue); background: #eef8ff; outline: 0; }
.wg-auth-switch { margin: 22px 0 0; color: #708297; text-align: center; font-size: 12px; font-weight: 500; }
.wg-auth-switch a { margin-left: 4px; color: var(--wg-auth-blue); font-weight: 750; }

.wg-auth-card__trust { display: flex; justify-content: center; gap: 26px; padding: 13px 24px; border-top: 1px solid #e7eef4; color: #7b8da0; font-size: 9px; font-weight: 650; background: #fbfdff; }
.wg-auth-card__trust span { display: inline-flex; align-items: center; gap: 6px; }
.wg-auth-card__trust i { width: 6px; height: 6px; border-radius: 50%; background: #28b686; box-shadow: 0 0 0 3px rgba(40,182,134,.12); }

@media (max-width: 767.98px) {
    .wg-auth { min-height: 0; padding: 28px 0 42px; }
    .wg-auth__backdrop { height: 210px; }
    .wg-auth__container { padding-right: 14px; padding-left: 14px; }
    .wg-auth-card { max-width: 520px; border-radius: 8px; box-shadow: 0 15px 42px rgba(15,42,65,.13); }
    .wg-auth-card__intro { padding: 26px 20px 22px; }
    .wg-auth-card__icon { width: 50px; height: 50px; margin-bottom: 11px; }
    .wg-auth-card__icon svg { width: 24px; height: 24px; }
    .wg-auth-card h1 { font-size: 20px; }
    .wg-auth-card__lead { max-width: 360px; font-size: 12px; line-height: 1.55; margin-top: 0px; }
    .wg-auth-form { padding: 25px 20px 23px; }
    .wg-auth-grid { grid-template-columns: 1fr; gap: 0; }
    .wg-auth-error--grid { margin-top: -12px; }
    .wg-auth-label-row { gap: 8px; }
    .wg-human-check { gap: 9px; padding: 12px; }
    .wg-human-check__shield { display: none; }
    .wg-human-check__answer { flex-basis: 88px; width: 88px; }
    .wg-auth-card__trust { gap: 16px; padding-inline: 12px; }
}

@media (max-width: 379.98px) {
    .wg-account-type__options { grid-template-columns: 1fr; }
    .wg-human-check { align-items: stretch; flex-direction: column; }
    .wg-human-check__copy { justify-content: center; text-align: center; }
    .wg-human-check__answer { width: 100%; flex-basis: 40px; }
    .wg-auth-card__trust { align-items: center; flex-direction: row; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .wg-auth-submit, .wg-auth-input, .wg-auth-social a, .wg-account-type__options span { transition: none; }
}
