/* Ð£Ð½Ð¸ÐºÐ°Ð»ÑŒÐ½Ñ‹Ðµ ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð¼Ð¾Ð´Ð°Ð»ÐºÐ¸ Ñ€ÐµÐ³Ð¸ÑÑ‚Ñ€Ð°Ñ†Ð¸Ð¸/Ð²Ñ…Ð¾Ð´Ð° - Ð¿Ð¾Ð»Ð½Ð¾ÑÑ‚ÑŒÑŽ Ð¸Ð·Ð¾Ð»Ð¸Ñ€Ð¾Ð²Ð°Ð½Ñ‹ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.vv-auth-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: visible;
    outline: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: "Roboto", sans-serif;
}

button.vv-btn-block.vv-btn-primary.vv-register-submit {
    align-self: center;
}

.vv-register-form {
    display: flex;
    flex-direction: column;
}

.vv-auth-modal.vv-show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.vv-auth-modal .vv-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: visible;
}

.vv-auth-modal.vv-show .vv-modal-dialog {
    transform: translateY(0);
}

.vv-auth-modal .vv-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    gap: 10px;
}

/* Ð’ÐµÑ€Ñ…Ð½Ð¸Ð¹ Ð±Ð»Ð¾Ðº */
.vv-auth-modal .vv-modal-top {
    background: #ffffff;
    padding: 32px 32px 40px;
    border-radius: 16px;
    position: relative;
    overflow: visible;
}

/* ÐÐ¸Ð¶Ð½Ð¸Ð¹ Ð±Ð»Ð¾Ðº */
.vv-auth-modal .vv-modal-bottom {
    background: #f2efe9;
    padding: 24px 32px 32px;
    border-radius: 16px;
}

/* ÐšÐ¾Ð½Ñ‚ÐµÐ¹Ð½ÐµÑ€ Ð´Ð»Ñ Ð½Ð¸Ð¶Ð½ÐµÐ³Ð¾ Ð±Ð»Ð¾ÐºÐ° (Ñ‚ÐµÐºÑÑ‚ ÑÐ»ÐµÐ²Ð°, ÐºÐ°Ñ€Ñ‚Ð¸Ð½ÐºÐ° ÑÐ¿Ñ€Ð°Ð²Ð°) */
.vv-auth-modal .vv-bottom-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.vv-auth-modal .vv-bottom-left {
    max-width: 205px;
    flex: 1;
}

.vv-auth-modal .vv-bottom-right {
    flex-shrink: 0;
    margin: 0 auto;
}

.vv-auth-modal .vv-bottom-logo {
    max-width: 80px;
    height: auto;
    display: block;
}

/* ÐšÑ€ÐµÑÑ‚Ð¸Ðº - Ð·Ð° Ð¿Ñ€ÐµÐ´ÐµÐ»Ð°Ð¼Ð¸ Ð¼Ð¾Ð´Ð°Ð»ÐºÐ¸ ÑÐ¿Ñ€Ð°Ð²Ð° */
.vv-auth-modal .vv-close {
    position: absolute;
    top: 0;
    right: -50px;
    width: 40px;
    height: 40px;
    background: rgb(255 255 255 / 20%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.vv-auth-modal .vv-close:hover {
    background: rgb(209 138 28 / 70%);
}

.vv-auth-modal .vv-close svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.vv-auth-modal .vv-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    text-align: left;
}

.vv-auth-modal .vv-form-group {
    margin-bottom: 12px;
}

.vv-auth-modal .vv-form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    background-color: #f0f0f0;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.vv-auth-modal .vv-form-control:focus {
    outline: none;
    background-color: #f7f7f7 !important;
    box-shadow: none;
    border: 2px solid #7ccfe9;
    font-weight: 500;
}

.vv-auth-modal .vv-form-control:hover {
    background-color: #e8e8e8;
}

.vv-auth-modal .vv-form-control::placeholder {
    color: #aaa;
}

.vv-auth-modal .vv-checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 24px;
}

.vv-auth-modal .vv-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    margin: 0;
}

.vv-auth-modal .vv-checkbox-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.vv-auth-modal .vv-forgot-link {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
}

.vv-auth-modal .vv-forgot-link:hover {
    text-decoration: underline;
    color: #1ca6d1;
}

.vv-auth-modal .vv-btn-block {
    display: block;
    width: 50%;
    height: 44px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vv-auth-modal .vv-btn-primary {
    background-color: #1ca6d1;
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(28, 166, 209, 0.3);
}

.vv-auth-modal .vv-btn-primary:hover {
    background-color: #098bb3;
}

.vv-auth-modal .vv-btn-secondary {
    background-color: #ffffff;
    border: none;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 400;
}

.vv-auth-modal .vv-btn-secondary:hover {
    background-color: #f5f5f5;
}

.vv-auth-modal .vv-btn-link {
    color: #1ca6d1;
    text-decoration: none;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.vv-auth-modal .vv-btn-link:hover {
    background-color: #1ca6d1 !important;
    color: white !important;
    transition: all 0.3s ease;
    /* text-decoration: underline; */
}

.vv-auth-modal .vv-text-danger {
    font-size: 14px;
    font-weight: 500;
    margin: -25px auto 0px;
    color: #ef727e;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    align-self: center;
}

.vv-auth-modal .vv-alert-info {
    display: flex;
    background-color: #e8f0fe;
    border: none;
    color: #0066cc;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.vv-auth-modal .vv-alert-info .vv-btn-link {
    color: #1ca6d1;
    font-weight: 500;
    margin-left: 8px;
    background-color: white;
    border-radius: 10px;
    padding: 10px 30px;
    box-shadow: 0 1px 5px 2px rgb(100 100 100 / 10%);
}

.vv-auth-modal .vv-bottom-text {
    font-size: 14px;
    color: #888;
    text-align: left;
    margin-top: 20px;
    line-height: 1.4;
}

.vv-auth-modal .vv-bottom-text a {
    color: #888;
    font-weight: 500;
    text-decoration: underline;
}

.vv-auth-modal .vv-bottom-text a:hover {
    color: #1ca6d1;
}

.vv-auth-modal .vv-left {
    text-align: left;
}

.vv-auth-modal .vv-mt-16 {
    margin-top: 16px;
}

.vv-auth-modal .vv-hidden {
    display: none;
}

/* ÐÐ´Ð°Ð¿Ñ‚Ð¸Ð² Ð´Ð»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑŒÐ½Ñ‹Ñ… ÑƒÑÑ‚Ñ€Ð¾Ð¹ÑÑ‚Ð² */
@media (max-width: 480px) {
    .vv-auth-modal .vv-bottom-container {
        /* flex-direction: column; */
        /* text-align: center; */
    }

    .vv-auth-modal .vv-bottom-left {
        /* text-align: center; */
    }

    .vv-auth-modal .vv-btn-secondary {
        /* margin: 0 auto; */
    }

    .vv-auth-modal .vv-close {
        top: -40px;
        right: 0;
        width: 32px;
        height: 32px;
    }

    .vv-auth-modal .vv-close svg {
        width: 20px;
        height: 20px;
    }
}

/* Backdrop */
.vv-modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vv-modal-backdrop.vv-show {
    opacity: 0.5;
}

/* Body Ð¼Ð¾Ð´Ð°Ð»ÑŒÐ½Ð¾Ð³Ð¾ Ñ€ÐµÐ¶Ð¸Ð¼Ð° */
body.vv-modal-open {
    overflow: hidden;
}

/* ÐÐ½Ð¸Ð¼Ð°Ñ†Ð¸Ð¸ */
.vv-auth-modal .vv-fade-in {
    animation: vvFadeIn 0.3s ease forwards;
}

.vv-auth-modal .vv-fade-out {
    animation: vvFadeOut 0.3s ease forwards;
}
/* Стили для select с флагами */
.vv-auth-modal .vv-country-code-select {
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 20px 15px;
    padding-left: 36px !important;
}

/* Если нужен кастомный select с картинками, лучше использовать div-аналог */
.vv-flag-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vv-flag-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}


@keyframes vvFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vvFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Кастомный select с флагами */
.vv-custom-select {
    position: relative;
    width: auto;
    min-width: 130px;
    cursor: pointer;
}

.vv-custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    background-color: #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
}

.vv-flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.vv-select-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s;
}

.vv-custom-select.open .vv-select-arrow {
    transform: rotate(180deg);
}

.vv-custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.vv-custom-select.open .vv-custom-select-dropdown {
    display: block;
}

.vv-custom-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.vv-custom-option:hover {
    background-color: #f0f0f0;
}

.vv-custom-option.selected {
    background-color: #e8f0fe;
}

/* Loader overlay */
.vv-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vv-loader-overlay.vv-active {
    opacity: 1;
    visibility: visible;
}

.vv-loader-gif {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.vv-loader-text {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
}

.vv-loader-dots {
    display: inline-block;
    width: 30px;
    text-align: left;
}