@import "library.css";
:root {
    --loginMainBackgroundColor: #000000;
    --loginMainTextColor: #ffffff;
    --loginSecondaryBackgroundColor: #ea0000;
    --loginSecondaryTextColor: #151515;
}
*, *::before, *::after {
    box-sizing: inherit;
}

html {
    font-size: 2.77vw;
    box-sizing: border-box;
}
body {
    margin: 0;
    font-size: 12px;
    font-family: 'Graphik LCG', sans-serif;
}
svg:not(:root) {
    overflow: hidden
}
svg {
    width: 100%;
    height: 100%
}
.login__content {
    background-color: var(--loginMainBackgroundColor, #000000);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    max-width: 100vw;
    padding-top: 7rem;
    padding-bottom: 3.5rem;
}
.login__container {
    background-color: var(--loginMainBackgroundColor, #000000);
    width: 36rem;
    min-height: 44.2rem;
    margin-top: 0;
}
.login__logo {
    width: 12rem;
    height: 2.6rem;
    margin: 0 auto 2.4rem;
    background: transparent;
    padding: 0;
}
.login__logo img {
    max-width: 100%;
    min-width: 100%;
}
.login__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: .8rem .8rem 0 0;
    padding: 2.4rem 1.6rem;
    width: 36rem;
    height: 8rem;
    background: var(--loginSecondaryTextColor, #151515);
}
.login__header-title {
    font-weight: 500;
    font-size: 2.4rem;
    color: var(--loginMainTextColor, #ffffff);
}
.login__lang {
    width: 5.2rem;
    border-bottom: none;
    font-weight: 500;
    font-size: 1.4rem;
    padding: 0;
    border-radius: 0;
    text-transform: uppercase;
    color: var(--loginSecondaryBackgroundColor, #ea0000);
}
.login__lang .select2 {
    width: 5.2rem !important;
    appearance: none;
}
.login__lang .select2 .selection {
    height: 1.6rem;
    display: block;
}
.login__lang .select2-container--default .select2-selection--single {
    background-color: var(--loginSecondaryTextColor, #151515);
    height: 1.6rem;
    display: block;
    border: none;
}
.select2-container {
    display: inline;
}
.login__lang .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--loginSecondaryBackgroundColor, #ea0000);
    line-height: normal;
    padding: 0;
    height: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: .4rem;
}
.login__lang .select2-container--default .select2-selection--single .select2-selection__arrow {
    content: url('/images/select-arrow-red.svg');
    top: .2rem;
    right: 0;
    width: 1rem;
    height: .8rem;
    transition: transform 250ms ease;
    transform: none;
}
.login__lang .select2-container--open .select2-selection--single .select2-selection__arrow {
    transform: rotate(180deg);
}
.login__lang-dropdown,
.select2-container--open .login__lang-dropdown.select2-dropdown--below {
    border-radius: .3rem;
}
.login__lang {
    padding: 0;
    display: flex;
    align-items: center;
    width: 5.2rem;
}
.login__link-button a {
    color: var(--loginSecondaryBackgroundColor, #ea0000);
    text-decoration: underline;
    text-underline-offset: .6rem;
}
.login__link-button a:hover {
    color: var(--loginMainTextColor, #ffffff);
    text-decoration: none;
}
.login__field .select2 {
    width: 8.4rem !important;
    height: 5.2rem;
    margin: 0 0 .4rem;
    padding: 0;
    font-size: 1.6rem;
    background-color: var(--loginMainBackgroundColor, #000000);
    appearance: none;
}
.login__field--vertical .select2 {
    width: 100% !important;
}
.login__field .select2 .selection {
    height: 5.2rem;
    display: block;
}
.login__field .select2-container--default .select2-selection--single {
    background-color: var(--loginMainBackgroundColor, #000000);
    border-radius: .3rem;
    height: 5.2rem;
    display: block;
}

.login__field .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--loginMainTextColor, #ffffff);
    line-height: normal;
    padding: 0;
    height: 5.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login__field .select2-container--default .select2-selection--single .select2-selection__arrow {
    content: url('/images/select-arrow.svg');
    top: 1.5rem;
    right: 1.4rem;
    width: 2.4rem;
    height: 2.4rem;
    transition: transform 250ms ease;
    transform: none;
}

.login__field .select2-container--open .select2-selection--single .select2-selection__arrow {
    transform: rotate(180deg);
}

.login__field-select-dropdown .select2-results__option,
.login__field-select-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--loginSecondaryTextColor, #151515);
    color: color(from var(--loginMainTextColor, #ffffff) display-p3 r g b / 90%);
    padding: 0 1.6rem 0 1.6rem;
    transition: color 250ms ease;
}
.login__field-input {
    border: .1rem solid color(from var(--loginMainTextColor, #ffffff) display-p3 r g b / 20%);
    border-radius: .3rem;
    width: 32.8rem;
    height: 5.2rem;
    margin: 0 0 .4rem;
    padding: 0 0 0 1.6rem;
    font-size: 1.6rem;
    background-color: var(--loginSecondaryTextColor, #151515);
    color: color(from var(--loginMainTextColor, #ffffff) display-p3 r g b / 90%);
    transition: border-color 250ms
    ease-in;
}
.login__field-select-dropdown .select2-results__option:hover {
    background-color: color(from var(--loginMainTextColor, #ffffff) display-p3 r g b / 7%);
}

.login__field-select-dropdown .select2-results__option--selected {
    background-color: color(from var(--loginMainTextColor, #ffffff) display-p3 r g b / 7%) !important;
}

.login__field-select-dropdown .select2-results__options {
    background-color: var(--loginSecondaryTextColor, #151515);
}


.login__field:has(label.error:not([style="display: none;"])) input.login__field-input {
    border-color: var(--loginSecondaryBackgroundColor, #ea0000);
}

@media (min-width: 768px) {
    html {
        font-size: 10px;
    }

    .login__container {
        width: 50.4rem;
        min-height: 44.2rem;
        padding: 0;
        position: relative;
    }

    .login__logo {
        margin-bottom: 2rem;
    }

    .login__header {
        width: 50.4rem;
    }

    .login__lang-switch {
        width: 3rem;
    }

    .login__link-button h2 {
        font-size: 1.8rem;
        line-height: 120%;
    }

    .login__field .select2 {
        width: 17rem !important;
        margin: 0;
    }

    .login__field--vertical .select2 {
        width: 100% !important;
    }
}


.alert-danger {
    position: relative;
    margin: 10px 0;
}

.registration-form label.error,
.login__form label.error {
    color: var(--loginSecondaryBackgroundColor, #ea0000);
    text-align: center;
    left: 0;
    margin-top: .2rem;
    font-size: 1.2rem;
    right: 0;
}
.connexion {
    position: relative;
    padding: 20px;
    width: 100%;
    left: 0;
    border: 4px solid var(--fontColor);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: all 0.5s;
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
    min-width: 0;
}
.form-row .login__field-input {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}
.stylish-group {
    width: 100%;
    position: relative;
}

.stylish-group label.error {
    color: var(--errorColor, #ea0000);
    position: absolute;
    margin-top: 4px;
}

.checkbox-inline label.error {
    bottom: -18px;
}

.fancy-label {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    display: block;
    padding-left: 3px;
}

.fancy-input {
    width: 100%;
    border: 2px solid #30323d;
    border-radius: 8px;
    background: linear-gradient(90deg, #18181c 65%, #220000 130%);
    color: #fff;
    font-size: 1.1em;
    font-family: inherit;
    padding: 16px 16px 16px 14px;
    margin-bottom: 0;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 0 0 0 #ea000088;
}

.fancy-input:focus,
.fancy-input:hover {
    outline: none;
    border-color: #ea0000;
    box-shadow: 0 0 8px 0 #ea000055;
    background: linear-gradient(90deg, #232329 60%, #441111 130%);
}

.fancy-input:disabled {
    opacity: 0.8;
}

@media (max-width: 600px) {
    .modern-inputs { flex-direction: column; gap: 10px; }
}
.form-row.modern-inputs {
    display: flex;
    gap: 28px;
}

.stylish-group {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.fancy-label {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    display: block;
    padding-left: 4px;
}
.fancy-label .step {
    color: #EA0000;
    border-radius: 50%;
    background: #22181a;
    text-align: center;
    padding: 2px 2px 2px 2px;
    font-weight: bold;
    margin-right: 8px;
    font-size: 12px;
    display: inline-block;
    vertical-align: middle;
}
.fancy-input, .js-select2, .big-select, textarea.fancy-input {
    width: 100%;
    border: 2px solid #30323d;
    border-radius: 8px;
    background: linear-gradient(90deg, #18181c 65%, #220000 130%);
    color: #fff;
    font-size: 1.08em;
    font-family: inherit;
    padding: 16px 16px 16px 14px;
    margin-bottom: 0;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 0 0 0 #ea000077;
    outline: none;
    min-height: 48px;
    height: 48px;
}

.fancy-input:focus, .fancy-input:hover,
.big-select:focus, .big-select:hover,
textarea.fancy-input:focus, textarea.fancy-input:hover {
    border-color: #ea0000;
    box-shadow: 0 0 11px 0 #ea000033;
    background: linear-gradient(90deg, #232329 60%, #441111 130%);
}
textarea.fancy-input {
    resize: vertical;
    min-height: 56px;
}

.checkbox-inline {
    display: flex;
    gap: 20px;
    margin: 20px 40px;
}
.custom-checkbox {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    color: #fff;
    user-select: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox span::before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    width: 18px;
    height: 18px;
    border: 2px solid #ea0000aa;
    border-radius: 4px;
    background: #18181b;
    transition: border-color .2s, background .2s;
}

.custom-checkbox input[type="checkbox"]:checked + span::before {
    border-color: #ea0000;
    background: #ea0000;
}

.custom-checkbox input[type="checkbox"]:checked + span::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(1.1);
}

.custom-checkbox:hover span::before {
    border-color: #d90000;
}

.big-select, .js-select2 {
    min-height: 48px;
    background: linear-gradient(90deg, #18181c 65%, #220000 140%);
    color: #fff !important;
    border-radius: 8px;
    border: 2px solid #30323d;
    transition: border-color 0.25s, box-shadow 0.25s;

}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #30323d;
    box-shadow: 0 0 11px 0 #30323d;
}

.select2-container--default .select2-selection--multiple {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #18181c 65%, #220000 130%);
    border: 2px solid #30323d;
    border-radius: 8px;
    padding: 5px 0;
    min-height: 48px;
    box-shadow: 0 0 0 0 transparent;
}
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default .select2-selection--multiple:active,
.select2-container--default .select2-selection--multiple:hover {
    border-color: #ea0000;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(100deg,#EA0000 60%,#511010 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    margin: 2px 8px 2px 0;
    padding: 8px 6px 8px 24px;
    display: inline-flex;
}
.select2-container--default .select2-results__option--selected {
    background-color: #30323d;
}
.select2-container--default .select2-results>.select2-results__options {
    background: #161518;
    color: #fff;
    font-size: 15px;
}
.select2-container--default .select2-search--inline .select2-search__field {
    background: transparent;
    color: #fff;
    margin-left: 8px;
    margin-bottom: 4px;
    font-size: 14px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background-color: transparent;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fffaaa;
    margin-left: 5px;
    bottom: 0;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    margin: 0;
    padding-left: 8px;
}
.select2-dropdown { background: #18181c; border: 2px solid #30323d; color: #fff; }
.select2-container--open .select2-dropdown {
    background: #220000;
}
.select2-results__option--highlighted, .select2-results__option--highlighted.select2-results__option--selectable {
    background: linear-gradient(101deg,#ea0000 60%,#b60000 120%);
    color: #fff !important;
}

.button-login.modern-button {
    width: 100%;
    padding: 4px;
    background: linear-gradient(101deg,#ea0000 60%,#b60000 120%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    margin-top: 14px;
    margin-bottom: 6px;
    box-shadow: 0 4px 15px rgba(234,0,0,0.4);
    transition: background 0.18s, box-shadow 0.14s;
    text-transform: uppercase;
}
.button-login.modern-button:hover, .button-login.modern-button:focus {
    background: linear-gradient(101deg,#b60000 50%,#ea0000 120%);
    box-shadow: 0 4px 22px #ea000035;
}

@media (max-width: 600px) {
    .modern-inputs { flex-direction: column; gap: 10px; }
}

.welcome-modal__content {
    background: #18181b;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.6);
    max-width: 420px;
    text-align: center;
    color: #fff;
    font-family: "Inter", sans-serif;
}

.welcome-modal__text {
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.welcome-modal__text span {
    color: #ea0000;
    font-weight: 600;
}

.welcome-modal__schedule {
    background: #202024;
    border: 1px solid #2a2a2e;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 18px 0;
    font-size: 14px;
    text-align: left;
}

.welcome-modal__schedule div:first-child {
    font-weight: 600;
    margin-bottom: 6px;
    color: #ea0000;
}

.welcome-modal__schedule div:nth-child(2) {
    font-size: 13px;
    margin-bottom: 4px;
    color: #b3b3b3;
}

.welcome-modal__schedule div:last-child {
    font-weight: 500;
    color: #fff;
}

.telegram-btn {
    background: transparent;
    border: 1px solid #ff0000;
    margin-left: 10px;
    color: #ff0000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.telegram-btn:hover {
    background: #ff0000;
    color: #fff;
}