﻿*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    margin: 0;
    height: 100%;
    font-family: "Inter", sans-serif;
    background-color: #1e1f25;
    background-repeat: repeat;
    background-size: 200px 200px;
    color: #fff;
}

.dark_overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 32, 42, 0.95);
    pointer-events: none;
}

.auth_section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.auth_section.register{
    padding: 30px 0;
}

.auth_wrapper {
    width: 440px;
    text-align: center;
}

@media screen and (max-width: 450px) {
    .auth_wrapper {
        width: 100%;
        padding: 0 15px;
    }
}



.form_auth_wrapper {
    background: #12181F;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 28px;
}


.logo img {
    width: 220px;
    margin-bottom: 10px;
}

.form_auth__title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}

@media screen and (max-width: 450px) {
    .form_auth__title {
        font-size: 18px;
    }
}

.form_auth__subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 25px;
    line-height: 1.5;
}

.form_auth {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pwd-wrapper{
    display: flex;
    gap: 10px
}

/* inputs */

.input_group {
    position: relative;
    display: flex;
    align-items: center;
    background: #161D26;
    border-radius: 10px;
    padding: 12px 40px;
    border: 2px solid transparent;
}

.input_group input {
    width: 100%;
    border: none;
    background: none;
    font-size: 15px;
    color: #fff;
    outline: none;
    padding: 5px 0;
}


.input_icon {
    position: absolute;
    left: 12px;
    width: 15px;
}

.register_input_icon{
    position: absolute;
    right: 20px;
}

.clear_btn {
    display: none;
    /* position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer; */
}

/* erros validation */
.input_group.error {
    border-color: #ff4d4f;
}

.error_text {
    font-size: 13px;
    color: #ff4d4f;
    margin-top: 6px;
    display: none;
    text-align: start;
}

.input_group.error + .error_text {
    display: block;
}

input:invalid {
    box-shadow: none;
}

/* buttons */

.btn {
    padding: 18px 14px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    border: none;
}


/* спиннер*/
.auth_btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important; /* Делаем текст прозрачным */
}

.auth_btn.loading * {
    opacity: 0 !important;
}


/* Сам spinner */
.auth_btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-top: -14px;
    margin-left: -11px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner .75s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}


/* Выборка стран */

/* Скролл внутри списка стран */
.countries_dropdown::-webkit-scrollbar {
    width: 6px;              /* ширина полосы */
}

.countries_dropdown::-webkit-scrollbar-track {
    background: transparent; /* фон дорожки */
}

.countries_dropdown::-webkit-scrollbar-thumb {
    background: #3c4a5b;     /* цвет бегунка */
    border-radius: 10px;     /* скругление */
}

.countries_dropdown::-webkit-scrollbar-thumb:hover {
    background: #4c5d72;     /* цвет при наведении */
}


.input_group--dropdown {
    position: relative;
}

.countries_dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #1e2631;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}


@media screen and (max-width: 450px) {
    .countries_dropdown {
        max-height: 220px;
    }
}



.countries_dropdown.show {
    display: block;
}

.country_option {
    padding: 10px;
    cursor: pointer;
}

.country_option{
    text-align: start;
}

.country_option:hover{
    background: #3c4a5b;
}


.dropdown_search {
    padding: 10px;
}

.dropdown_search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #444444;
    border-radius: 4px;
}


/* Обёртка календаря */


.flatpickr-calendar {
    background: #1e2631 !important;
    border: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    font-family: inherit;
}

/* Заголовок месяца */
.flatpickr-months .flatpickr-month {
    background: transparent;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
}


.flatpickr-monthDropdown-months {
    background: #1e2631 !important;
    color: #fff !important;
    border-radius: 8px !important;
}

/* Элементы списка месяцев */
.flatpickr-monthDropdown-months option {
    background: #1e2631 !important;
    color: #fff !important;
}

/* Активный месяц */
.flatpickr-monthDropdown-months option:checked,
.flatpickr-monthDropdown-months option:hover,
.flatpickr-monthDropdown-months option:focus {
    background: #1A85FF !important;
    color: #fff !important;
}

/* Кнопки стрелок */
.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #777 !important;
    transition: 0.2s;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    fill: #000 !important;
    transform: scale(1.15);
}

/* Область дней */
.flatpickr-days {
    border: none;
}

.flatpickr-weekday {
    color: #ffffff !important;
    opacity: 0.8 !important;
}

/* Обычные дни */
.flatpickr-day {
    border-radius: 8px;
    transition: 0.15s;
    font-size: 14px;
    color: #828282 !important;
}

/* Наведение */
.flatpickr-day:hover {
    background: rgba(0, 125, 255, 0.1);
    color: #fff !important;
}

/* Сегодня */
.flatpickr-day.today {
    border: none;
    background: rgba(96, 96, 96, 0.1);
    color: #007dff;
}

/* Выбранная дата */
.flatpickr-day.selected {
    background: #1A85FF !important;
    color: #fff !important;
    border-radius: 8px;
}

/* Блокированный день */
.flatpickr-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


@media screen and (max-width: 450px) {
    .flatpickr-calendar {
        left: 50px !important;
    }
}


/* Ввод в поле */
input[placeholder="Дата рождения"] {
    cursor: pointer;
}

/* PHONE INPUT — main container */
.phone_input_group {
    position: relative;
    padding: 12px 20px;
}

/* actual input */
.phone_input_group input {
    width: 100%;
    height: 48px;
    background: #1A1D23;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
}

/* кнопка очистки */
.phone_input_group .clear_btn {
    position: absolute;
    right: 12px;
    top: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #777;
}


@media screen and (max-width: 450px) {
    .phone_input_group {
        padding: 0px;
    }
}

/* ----- INTL-TEL-INPUT CUSTOM THEME ----- */

.iti {
    width: 100%;
}

.iti__dropdown-content{
    bottom: 50px !important;
}

@media screen and (max-width: 450px) {
    .iti__dropdown-content {
        top: 10px !important;
    }
}



.iti__country-list::-webkit-scrollbar {
    width: 8px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: #2A2F38;
    border-radius: 4px;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: #4F46E5;
    border-radius: 4px;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: #4338CA;
}


/* флаг + код */
.iti__selected-flag {
    background: #1A1D23 !important;
    border-radius: 10px 0 0 10px;
    padding: 0 10px !important;
    height: 48px !important;
    border-right: 1px solid #333841;
    display: flex;
    align-items: center;
}

.iti__flag-container {
    height: 48px !important;
}

.iti__dropdown-content{
    background: #1A1D23 !important;
    border: none !important;
    border: 1px solid #333841 !important;
}

.iti__search-input{
    padding: 12px 20px !important;
    background-color: #161D26;
    color: white;
}

/* код страны */
.iti__selected-dial-code {
    color: white !important;
    font-size: 15px !important;
    margin-left: 6px;
}

/* dropdown (красиво под тёмную тему) */
.iti__country-list {
    background: #1A1D23 !important;
    border: 1px solid #333841 !important;
    border-radius: 10px;
    margin-top: 4px !important;
}

.iti__country {
    color: white !important;
}

.iti__country:hover {
    background: #2a2f38 !important;
}

.iti__divider {
    border-bottom: 1px solid #444 !important;
}

/* кнопки */

.auth_btn {
    position: relative;
    width: 100%;
    background: #1A85FF;
    color: #fff;
    border: none;
    padding:18px 14px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.25s ease;
}

.btn_icon {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn_icon img {
    width: 14px;
    height: 14px;
}

/* Hover эффект */
.auth_btn:hover {
    background: #2A8FFF;
}

.auth_btn:active {
    transform: scale(0.98);
}


.register_btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #007AFF;
    color: #007AFF;
    text-decoration: none;
}

.social_wrapper {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social_btn {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 6px;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    text-decoration: none;
}
.social_btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.social_btn img {
    width: 18px;
}

.footer_text {
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.6;
    line-height: 1.4;
}


/* documents */


.verify_section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.verify_card {
    background: #12181F;
    padding: 40px;
    border-radius: 16px;
    width: 440px;
    text-align: center;
    position: relative;
}

@media screen and (max-width: 450px) {
    .verify_card {
        background: #12181F;
        padding: 20px;
        border-radius: 16px;
        width: 350px;
    }
}


.verify_title {
    font-size: 22px;
    margin-bottom: 10px;
}

.verify_subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #78839C;
    margin-bottom: 30px;
}

/* Загрузить документы */
.upload_block {
    background: #1a212c;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 25px;
}

.upload_block span {
    flex-grow: 1;
    text-align: left;
    color: #B5BBC9;
    font-size: 14px;
}

.upload_icon img {
    width: 22px;
}

.arrow_icon {
    width: 16px;
    opacity: 0.6;
}

/* загруженный файл */

.upload_block.uploaded {
    background: #162028;
    border: 1px solid #3ECF8E;
}


.file_name {
    display: block;
    width: 100%;
    margin: 0px 0px 25px 0px;
    font-size: 13px;
    text-align: left;
    color: #B5BBC9;
    opacity: 0.85;
    text-align: center;
    color: #3ECF8E;
    font-weight: 500;

}


/* Кнопка */

.verify_btn.hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

.btn_verify img {
    width: 18px;
}

.btn_verify:hover {
    background: #2795ff;
}



/* face */
.face_section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}


.camera_block {
    margin: 20px 0;
    text-align: center;
}

#camera {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #000;
}

.camera_btn {
    background: #1a85ff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.camera_btn:hover {
    background: #2795ff;
}

#photoPreview {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    border: #007AFF 2px solid;
    display: block;
    object-fit: cover;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}


.auth_error {
    display: block;
    color: #ff5e5e;
    font-size: 16px;
}

.auth_error.register_error {
    margin-bottom: 10px;
}
.auth_error ul,
.auth_error li {
    margin: 0;
    padding: 0;
    list-style: none;
}






