.vg-auth-create-link {
    border: 0;
    background: transparent;
    color: #078fc9;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
.vg-auth-create-link:hover { text-decoration: underline; }

.vg-register-ui[hidden] { display: none !important; }
.vg-register-ui {
    position: fixed;
    inset: 0;
    z-index: 12000;
    font-family: Inter, Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}
.vg-register-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.48);
}
.vg-register-modal {
    position: absolute;
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%);
    width: min(810px, calc(100% - 32px));
    max-height: calc(100vh - 34px);
    overflow-y: auto;
    border-radius: 25px;
    background: #fff;
    padding: 28px 28px 24px;
    box-shadow: 0 22px 70px rgba(0,0,0,.26);
    color: #111;
}
.vg-register-modal h2 {
    margin: 0 46px 20px 0;
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    letter-spacing: -.45px;
}
.vg-register-close {
    position: absolute;
    right: 22px;
    top: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #65707a;
    font-size: 32px;
    line-height: 30px;
    cursor: pointer;
}
.vg-register-error {
    margin: -7px 0 13px;
    padding: 9px 11px;
    border: 1px solid #e5aaa6;
    border-radius: 7px;
    background: #fff3f2;
    color: #a52b25;
    font-size: 12px;
    line-height: 17px;
}
.vg-register-field {
    position: relative;
    height: 55px;
    margin-bottom: 8px;
    display: block;
    border: 1px solid #b8c0c8;
    border-radius: 10px;
    background: #fff;
    color: #5c6874;
    overflow: hidden;
}
.vg-register-field:focus-within {
    border-color: #2f9fe7;
    box-shadow: 0 0 0 3px rgba(47,159,231,.18);
}
.vg-register-field > span:first-child {
    position: absolute;
    left: 17px;
    top: 7px;
    z-index: 1;
    font-size: 13px;
    line-height: 16px;
    pointer-events: none;
}
.vg-register-field > b {
    position: absolute;
    top: 7px;
    margin-left: 4px;
    color: #d82424;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}
.vg-register-field > span:first-child + b { left: auto; }
.vg-register-field input,
.vg-register-field select {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111;
    padding: 22px 17px 5px;
    font-size: 16px;
    line-height: 21px;
}
.vg-register-field select {
    appearance: auto;
    cursor: pointer;
    color: #343b42;
}
.vg-register-phone-row {
    display: grid;
    grid-template-columns: 243px 1fr;
    gap: 9px;
}
.vg-register-country-field > span:first-child { font-size: 11px; }
.vg-register-country-field select { padding-top: 21px; }

.vg-register-consent {
    min-height: 32px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 18px 0 20px;
    cursor: pointer;
    color: #242a2f;
    font-size: 14px;
    line-height: 21px;
}
.vg-register-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.vg-register-box {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid #aeb8c0;
    border-radius: 5px;
    background: #fff;
    position: relative;
}
.vg-register-consent input:checked + .vg-register-box {
    border-color: #5a990e;
    background: #5a990e;
}
.vg-register-consent input:checked + .vg-register-box::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.vg-register-consent b {
    color: #d82424;
    font-size: 13px;
    font-weight: 600;
}
.vg-register-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: #528c08;
    color: #fff;
    font-size: 16px;
    line-height: 21px;
    font-weight: 600;
    cursor: pointer;
}
.vg-register-submit:disabled {
    cursor: default;
    background: #d7dce0;
    color: #aab2b9;
}
.vg-register-marketing {
    margin: 23px 0 0;
    color: #66727e;
}
body.vg-register-lock { overflow: hidden; }

@media (max-width: 760px) {
    .vg-register-modal {
        top: 50%;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        padding: 24px 18px 22px;
        border-radius: 20px;
    }
    .vg-register-modal h2 { font-size: 25px; line-height: 31px; }
    .vg-register-phone-row { grid-template-columns: 1fr; gap: 0; }
    .vg-register-field { height: 55px; }
    .vg-register-field input,
    .vg-register-field select { font-size: 16px; }
    .vg-register-consent { font-size: 14px; line-height: 20px; }
}
