@font-face {
    font-family: 'Rajdhani-SemiBold';
    src: url("../fonts/Rajdhani-SemiBold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* L2 Universe auth ------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:wght@600;700&family=Manrope:wght@400;500;600;700&display=swap');

.universe-auth {
    --universe-gold: #d6aa65;
    --universe-gold-soft: #f4dfb2;
    --universe-text: #efe7d8;
    --universe-muted: #afa08b;
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: #050504;
    color: var(--universe-text);
    font-family: "Manrope", Arial, sans-serif;
}

.universe-auth__page { position: relative; min-height: 100vh; isolation: isolate; }
.universe-auth__scene, .universe-auth__scene > * { position: fixed; inset: 0; }
.universe-auth__scene { z-index: -1; overflow: hidden; background: #050504; }
.universe-auth__texture { width: 100%; height: 100%; object-fit: cover; opacity: .68; }
.universe-auth__character { width: auto; height: 100%; object-fit: contain; pointer-events: none; }
.universe-auth__character--left { right: auto; left: -5vw; object-position: left bottom; opacity: .78; }
.universe-auth__character--right { right: -6vw; left: auto; object-position: right bottom; opacity: .62; }
.universe-auth__light, .universe-auth__mist { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.universe-auth__light { opacity: .42; }
.universe-auth__mist { opacity: .3; }
.universe-auth__shade { background: radial-gradient(circle at 50% 45%, rgba(12,10,7,.22), rgba(3,3,3,.82) 78%), linear-gradient(90deg, rgba(3,3,3,.7), rgba(3,3,3,.26) 50%, rgba(3,3,3,.72)); }

.universe-auth__topbar {
    position: relative; z-index: 10; min-height: 68px; display: grid;
    grid-template-columns: minmax(190px,280px) 1fr minmax(190px,auto); align-items: center; gap: 16px;
    padding: 0 clamp(18px,5vw,76px); border-bottom: 1px solid rgba(214,170,101,.28);
    background: linear-gradient(180deg,rgba(5,5,4,.98),rgba(6,5,4,.72)); backdrop-filter: blur(16px);
    box-shadow: 0 16px 44px rgba(0,0,0,.4);
}
.universe-auth__brand { display: flex; align-items: center; width: max-content; }
.universe-auth__brand img { width: 176px; max-height: 52px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(214,170,101,.2)); }
.universe-auth__navlinks { display: flex; justify-content: center; align-items: stretch; height: 68px; }
.universe-auth__navlinks a { display: flex; align-items: center; padding: 0 18px; color: #d9cdb9; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; transition: .25s ease; }
.universe-auth__navlinks a:hover { color: var(--universe-gold-soft); background: rgba(214,170,101,.07); }
.universe-auth__tools { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.universe-auth__register { min-height: 40px; display: inline-flex; align-items: center; padding: 0 20px; border: 1px solid rgba(214,170,101,.5); color: var(--universe-gold-soft); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(214,170,101,.08); }
.universe-auth__register:hover { background: var(--universe-gold); color: #15100a; }

.universe-auth__body { width: min(1180px,calc(100% - 48px)); min-height: calc(100vh - 68px); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) 430px; gap: clamp(48px,8vw,120px); align-items: center; padding: 54px 0; }
.universe-auth__intro { max-width: 590px; text-align: center; justify-self: center; }
.universe-auth__intro > img { width: min(500px,100%); filter: drop-shadow(0 0 28px rgba(214,170,101,.25)); }
.universe-auth__kicker { margin: 0 0 18px; color: var(--universe-gold-soft); font-size: 12px; font-weight: 700; letter-spacing: .35em; text-transform: uppercase; }
.universe-auth__intro h1 { margin: 12px 0; color: #f5e9d0; font-family: "Cinzel",serif; font-size: clamp(28px,3.2vw,48px); font-weight: 600; }
.universe-auth__intro > p:not(.universe-auth__kicker) { max-width: 520px; margin: 0 auto; color: #c9bda9; line-height: 1.7; }
.universe-auth__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.universe-auth__tags span { padding: 8px 13px; border: 1px solid rgba(214,170,101,.3); background: rgba(5,5,4,.62); color: var(--universe-gold-soft); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.universe-auth__panel { position: relative; border: 1px solid rgba(214,170,101,.34); background: linear-gradient(145deg,rgba(20,17,13,.94),rgba(7,6,5,.96)); box-shadow: 0 30px 90px rgba(0,0,0,.6), inset 0 1px rgba(255,255,255,.05); }
.universe-auth__panel::before, .universe-auth__panel::after { content:""; position:absolute; width:42px; height:42px; pointer-events:none; }
.universe-auth__panel::before { top:-1px; left:-1px; border-top:2px solid var(--universe-gold); border-left:2px solid var(--universe-gold); }
.universe-auth__panel::after { right:-1px; bottom:-1px; border-right:2px solid var(--universe-gold); border-bottom:2px solid var(--universe-gold); }
.universe-auth__panel-head { min-height: 54px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; border-bottom:1px solid rgba(214,170,101,.2); background:rgba(214,170,101,.055); text-transform:uppercase; }
.universe-auth__panel-head span { color:var(--universe-gold-soft); font-family:"Cinzel",serif; font-size:12px; letter-spacing:.18em; }
.universe-auth__panel-head small { color:#857965; font-size:10px; letter-spacing:.15em; }
.universe-auth .content { width:100%; min-width:0; max-width:none; padding:32px 28px; border:0; border-radius:0; background:transparent; box-shadow:none; }
.universe-auth .title { margin:0 0 8px; color:#f3e5c8; font-family:"Cinzel",serif; font-size:28px; font-weight:600; text-align:left; }
.auth-panel-copy { margin:0 0 26px; color:var(--universe-muted); font-size:13px; }
.universe-auth .form-control { height:52px; border:1px solid rgba(214,170,101,.2); border-radius:0; background:rgba(2,2,2,.62); color:#f4ead7; font-family:"Manrope",sans-serif; }
.universe-auth .form-control:focus { border-color:var(--universe-gold); box-shadow:0 0 0 3px rgba(214,170,101,.08); }
.universe-auth .btn-primary { min-height:52px; border:1px solid #e0ba76; border-radius:0; background:linear-gradient(135deg,#d5aa63,#9e632f); font-family:"Manrope",sans-serif; letter-spacing:.12em; box-shadow:0 15px 35px rgba(164,103,47,.28); }
.universe-auth .btn-gray-no-border { border-color:rgba(214,170,101,.3); border-radius:0; color:var(--universe-gold-soft); }
.universe-auth .checkmark { border-radius:0; }

@media (max-width: 980px) {
    .universe-auth__topbar { grid-template-columns:1fr auto; }
    .universe-auth__navlinks { display:none; }
    .universe-auth__body { grid-template-columns:1fr; gap:32px; }
    .universe-auth__intro { max-width:520px; }
    .universe-auth__panel { width:min(100%,470px); justify-self:center; }
    .universe-auth__character--left { left:-28vw; }
}
@media (max-width: 600px) {
    .universe-auth__topbar { min-height:62px; padding:0 14px; }
    .universe-auth__brand img { width:140px; }
    .universe-auth__tools .nav__langs { display:none; }
    .universe-auth__register { padding:0 13px; }
    .universe-auth__body { width:min(100% - 24px,470px); padding:36px 0; }
    .universe-auth__intro h1 { font-size:28px; }
    .universe-auth__intro > p:not(.universe-auth__kicker) { font-size:14px; }
    .universe-auth .content { padding:28px 20px; }
    .universe-auth .form-group.group { align-items:stretch; }
}
@font-face {
    font-family: 'Rajdhani-Regular';
    src: url("../fonts/Rajdhani-Regular.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* ===== 🎨 Глобальные переменные ===== */
:root {
    --color-primary: #ffa726;
    --color-secondary: #e1ce87;
    --color-background: #f5f7fa;
    --color-dark: #1e1e1e;
    --color-light: #ffffff;
    --color-accent: #ff6b6b;
    --accent-bg-color: rgb(149 111 0 / 90%);
    --color-gray: gray;
    --bgc-color: rgba(0, 0, 0, 0.5);
    --bg-form-head: rgb(209 163 0 / 40%);
    --bg-form-table: rgb(48 46 37 / 90%);
    --bg-dark: rgb(0 0 0 / 80%);
    --bg-color: rgba(0, 0, 0, 0.6);

    --font-accent-regular: Rajdhani-SemiBold;
    --font-accent-bold: Rajdhani-SemiBold;
    --font-regular: Rajdhani-Regular;
    --font-bold: Rajdhani-SemiBold;


    /* размеры */
    --sidebar-width: 250px;
    --container-padding: 30px;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}
#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
* {
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
}
body {
    font-family: var(--font-regular), sans-serif;
}

ul, li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
p {
    margin: 0;
}
a {
    color: #fff;
    text-decoration: none;
}
small {
    color: #bebebe;
}

/*FORM START*/
:focus-visible {
    outline: -webkit-focus-ring-color auto 0;
}
.form-control {
    font-family: var(--font-regular), sans-serif;
    box-sizing: border-box;
    background: #292D34;
    border: 1px solid rgb(255 255 255 / 10%);
    padding: 14px 20px;
    border-radius: 12px;
    width: 100%;
    color: #fff;
    font-size: 16px;
}

.form-control::placeholder {
    font-family: var(--font-regular), sans-serif;
    font-size: 14px;
}
.form-group {
    margin-bottom: 30px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-group.group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

::-webkit-input-placeholder {
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
}
::-moz-placeholder {
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
}
:-moz-placeholder {
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
}
:-ms-input-placeholder {
    color: #7b7873;
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
}
:focus::-webkit-input-placeholder {
    opacity: 0;
    transform: translateX(20px);
}
:focus::-moz-placeholder {
    opacity: 0;
    transform: translateX(20px);
}
:focus:-moz-placeholder {
    opacity: 0;
    transform: translateX(20px);
}
:focus:-ms-input-placeholder {
    opacity: 0;
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/*FORM END*/








.main-bg {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: -10;
    background-image: url("../img/lin2web/bg.jpg");
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}
aside.sidebar {
    position: fixed;
    z-index: 20;
    width: 270px;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    background-color: rgba(22, 15, 2, .5);
    border-right: .25rem solid #bbac8b;
}
.main-wrap {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.auth_logo img {
    width: 100%;
    max-width: 160px;
}
.auth_block_top {
    padding-left: 30px;
    padding-right: 20px;
    padding-top: 30px;
}
.auth_header_top {
    margin-top: 30px;
    margin-bottom: 30px;
}

form.logout button:hover:before {
    opacity: 1;
    transform: scaleY(1);
}



.auth_header_title {
    display: flex;
    align-items: center;
    gap: 5px;
}
.auth_header_title svg {
    width: 28px;
    color: #fff;
}
.auth_header_title p {
    font-size: 18px;
    color: var(--color-primary);
}
.auth_nav_top {
    padding: 10px 20px;
}
.auth_nav_top ul {
    display: flex;
    gap: 40px;
}
.auth_top_r {
    display: flex;
    align-items: center;
    gap: 30px;
}
.auth_nav_top a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 18px;
}
.auth_nav_top a:hover {
    color: var(--color-primary);
}
.auth_nav_top svg {
    width: 28px;
}

.btn-accent {
    height: 42px;
    min-width: 180px;
    width: 100%;
    justify-content: center;
    cursor: pointer;
    color: #ffffff !important;
    background: rgb(179, 126, 11);
    border: 1px solid rgb(255, 187, 0);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.btn-accent:hover {
    box-shadow: 0 0 8px #ffd100;
}
.btn-accent svg {
    width: 24px;
}
.btn-green {
    border: 0;
    cursor: pointer;
    background-color: #00d084;
    height: 42px;
    min-width: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    gap: 8px;
}
.btn-green:hover {
    box-shadow: 0 0 8px #00d084;
}
.btn-green svg {
    width: 24px;
}
.btn-primary {
    font-family: var(--font-bold), sans-serif;
    height: 42px;
    min-width: 180px;
    justify-content: center;
    cursor: pointer;
    color: #ffffff !important;
    background: rgb(179, 126, 11);
    border: 1px solid rgb(255, 187, 0);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.btn-primary:hover {
    box-shadow: 0 0 8px #ffd100;
}
.btn-primary svg {
    width: 24px;
}

/*LANGUAGE*/
.nav__langs {
    position: relative;
    z-index: 1;
}
.nav__langs-item {
    cursor: pointer;
    height: 42px;
    background-color: var(--bgc-color);
    padding: 0 5px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1em;
    color: #fff;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
    gap: 10px;
}

.nav__langs-item:hover, .nav__langs-item.active {
    color: #fff;
}
.nav__langs-item img {
    width: 22px;
    aspect-ratio: 34/24;
    border-radius: 2px;
}
.nav__langs-item--current:after {
    content: "";
    width: 12px;
    aspect-ratio: 12 / 6;
    background: url("../img/lin2web/arrow.png");
    background-size: 100% 100%;
    transition: transform 0.3s ease-in-out;
}

.nav__langs-item.active:after {
    transform: scale(1, -1);
}
.nav__langs-stroke {
    list-style-type: none;
    position: absolute;
    z-index: 1;
    top: calc(100% + 3px);
    right: 0;
    display: none;
}
.nav__langs-stroke li:not(:first-child) {
    margin-top: 10px;
}
.nav__links {
    list-style-type: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 30px;
    margin-left: auto;
    position: relative;
    z-index: 2;
}
.nav__links-item {
    font-family: var(--primary-font), sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1em;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: 6px;
    transition: color 0.3s ease-in-out;
}
.nav__links-item:hover {
    color: var(--brand-color);
}
.nav__links-item img {
    height: 16px;
}
.nav__switch {
    width: 34px;
    height: 34px;
    position: relative;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    display: none;
    transition: background-color 0.3s ease-in-out, border 0.3s ease-in-out;
    z-index: 3;
    border-radius: 50%;
    margin-left: auto;
}
.nav__switch:hover {
    background-color: var(--brand-color);
}
.nav__switch:hover:after, .nav__switch:hover:before, .nav__switch:hover .nav__switch-item {
    background: #1c2227;
}
.nav__switch:hover .nav__switch-item {
    transform: scale(0.7, 1);
}
.nav__switch.active:after {
    transform: rotate(-135deg) scale(0.7, 1);
    top: calc((100% - 2px) / 2);
}
.nav__switch.active:before {
    transform: rotate(135deg) scale(0.7, 1);
    top: calc((100% - 2px) / 2);
}
.nav__switch.active .nav__switch-item {
    transform: scale(0, 1);
}
.nav__switch:after {
    content: "";
    width: calc(100% - 12px);
    height: 2px;
    background: #cdcfd1;
    position: absolute;
    transition: all 0.3s ease-in-out;
    top: 11px;
    left: 6px;
    transform: scale(0.7, 1);
}
.nav__switch:before {
    content: "";
    width: calc(100% - 12px);
    height: 2px;
    background: #cdcfd1;
    position: absolute;
    transition: all 0.3s ease-in-out;
    top: calc(100% - 13px);
    left: 6px;
    transform: scale(0.7, 1);
}
.nav__switch-item {
    width: calc(100% - 12px);
    height: 2px;
    background: #cdcfd1;
    position: absolute;
    top: calc((100% - 2px) / 2);
    left: 6px;
    transition: all 0.3s ease-in-out;
    transform: scale(0.7, 1);
}
/*LANG END*/


/* Ошибки */
.text-danger {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 5px;
}

/* Успешно */
.text-success {
    color: #00cc66;
    font-size: 14px;
    margin-top: 10px;
}

/* Показать/Скрыть пароль */
.password-group {
    display: flex;
    align-items: center;
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    color: #aaa;
}

.password-toggle:hover {
    color: #fff;
}

main {
    height: 100%;
}
.auth_wrapper {
    margin-left: 60px;
    margin-right: 60px;
    height: 100%;
}
.auth_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: fixed;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding-left: 60px;
    padding-right: 60px;
}
.auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.content {
    background-color: var(--bg-color);
    min-width: 600px;
    max-width: 700px;
    padding: 30px;
    border-radius: 12px;
}
.title {
    text-align: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 30px;
}
.btn-gray-no-border {
    cursor: pointer;
    background: transparent;
    border: 1px solid #fff;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
}
.btn-gray-no-border:hover {
    border: 1px solid #fff;
}
.login_button button {
    width: 100%;
    max-width: 100%;
    height: 50px;
    font-size: 18px;
    position: relative;
}
.login_button a {
    min-width: 100%;
    width: 100%;
}
.login_button svg {
    position: absolute;
    left: 18px;
    width: 30px;
}
.group-text p {
    color: #bebebe;
    font-size: 14px;
}
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    color: #bebebe;
}

/* Скрыть дефолтный checkbox */
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Кастомный чекбокс */
.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 25px;
    background-color: #eee;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Состояние checked */
.checkbox-container input:checked ~ .checkmark {
    background-color: #6c5eff;
    border-color: #6c5eff;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

/* Галочка */
.checkbox-container input:checked ~ .checkmark::after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.text-center {
    text-align: center;
}


.alert-success {
    position: relative;
    display: flex;
    align-items: center;
    margin: 32px 0;
    border-radius: 16px;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    justify-content: space-between;
    background: #2A7B9B;
    background: linear-gradient(90deg, rgb(10 97 0) 15%, rgb(21 56 0) 100%);
}
.alert-success p {
    position: relative;
    padding-left: 60px;
    font-size: 18px;
    color: #dbff6a;
}
.alert-success p::before {
    content: "";
    position: absolute;
    left: 0;
    background-image: url("../img/lin2web/icon-success.svg");
    width: 40px;
    height: 40px;
    background-position: center center;
    background-size: cover;
    top: -40%;
    bottom: -50%;
}
.alert-danger {
    position: relative;
    display: flex;
    align-items: center;
    margin: 32px 0;
    border-radius: 16px;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    justify-content: space-between;
    background: gray;
    background: linear-gradient(90deg, rgb(255 87 87) 15%, rgb(255 32 32) 100%);
}
.alert-danger p {
    position: relative;
    padding-left: 60px;
    font-size: 18px;
    color: #ffb8b8;
}
.alert-danger p::before {
    content: "";
    position: absolute;
    left: 0;
    background-image: url("../img/lin2web/icon-danger.svg");
    width: 40px;
    height: 40px;
    background-position: center center;
    background-size: cover;
    top: -40%;
    bottom: -50%;
}
.close {
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
    background-color: rgb(255 255 255 / 10%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}
.close::before {
    content: "";
    position: absolute;
    background-image: url("../img/lin2web/close.svg");
    width: 18px;
    height: 18px;
}
.close:hover {
    background-color: rgb(255 255 255 / 20%);
}




@media only screen and (max-width : 675px) {
    .auth_wrapper {
        margin-left: 30px;
        margin-right: 30px;
    }
    .auth_nav_top ul {
        gap: 30px;
    }
    .auth_nav_top a {
        font-size: 14px;
    }
    .auth_top_r {
        gap: 15px;
    }
    .content {
        min-width: 100%;
    }
    .form-group.group {
        gap: 15px;
        justify-content: center;
    }
    .btn-gray-no-border {
        padding: 3px 8px;
        border-radius: 6px;
    }
}

/* L2Shilen auth */
@font-face {
    font-family: 'TrajanL2';
    src: url("../fonts/TrajanSansPro-Bold.otf") format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'MontserratL2';
    src: url("../fonts/Montserrat-Regular.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MontserratL2';
    src: url("../fonts/Montserrat-SemiBold.ttf") format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --shilen-bg: #080604;
    --shilen-panel: rgba(11, 8, 5, .88);
    --shilen-panel-soft: rgba(27, 20, 13, .72);
    --shilen-gold: #e5b85f;
    --shilen-gold-bright: #f6d993;
    --shilen-gold-dark: #9b672d;
    --shilen-text: #fff4dc;
    --shilen-muted: #c7b896;
    --shilen-border: rgba(229, 184, 95, .28);
}

body {
    min-height: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 72% 18%, rgba(187, 131, 52, .2), transparent 30%),
        linear-gradient(180deg, rgba(10, 7, 4, .82), #090604 70%);
    color: var(--shilen-text);
    font-family: 'MontserratL2', var(--font-regular), sans-serif;
}

.video-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 3, 2, .86) 0%, rgba(7, 5, 3, .58) 50%, rgba(7, 5, 3, .72) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(7, 5, 3, .88));
}

.video-overlay {
    background: rgba(6, 4, 2, .36);
}

#bg-video {
    filter: saturate(.85) contrast(1.08) brightness(.7);
}

.auth_wrapper {
    width: min(1320px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 0 48px;
}

.auth_top {
    position: relative;
    top: auto;
    left: auto;
    z-index: 5;
    min-height: 72px;
    display: grid;
    grid-template-columns: 210px 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 10px 14px 10px 20px;
    border: 1px solid rgba(229, 184, 95, .22);
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(9, 6, 4, .94), rgba(20, 13, 8, .96));
    box-shadow: 0 18px 60px rgba(0, 0, 0, .38);
    backdrop-filter: blur(8px);
}

.shilen-auth-brand {
    display: inline-flex;
    align-items: center;
    width: 164px;
    height: 48px;
}

.shilen-auth-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 12px rgba(227, 174, 78, .22));
}

.auth_nav_top ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth_nav_top a,
.auth_top_r .btn-accent,
.nav__langs-selected {
    min-height: 44px;
    border-radius: 7px;
    border: 1px solid transparent;
    padding: 0 16px;
    color: #f7ecd4;
    font-family: 'MontserratL2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth_nav_top a {
    gap: 8px;
}

.auth_nav_top a:hover,
.auth_nav_top li:first-child a {
    border-color: rgba(229, 184, 95, .2);
    background: rgba(229, 184, 95, .13);
    color: #fff3cd;
}

.auth_nav_top svg,
.auth_top_r .btn-accent svg {
    width: 18px;
    color: var(--shilen-gold);
}

.auth_top_r {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.auth_top_r .btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: rgba(229, 184, 95, .22);
    background: rgba(12, 8, 5, .72);
}

.auth_top_r .btn-accent:hover {
    background: linear-gradient(135deg, #dcae58, #a96b2e);
    color: #fff;
    box-shadow: 0 14px 34px rgba(202, 134, 52, .24);
}

.nav__langs {
    position: relative;
}

.nav__langs-selected {
    background: linear-gradient(135deg, #e1b764, #b47635);
    color: #fff;
    box-shadow: 0 12px 30px rgba(205, 142, 54, .18);
}

.nav__langs-item {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 94px;
    padding: 8px;
    border: 1px solid var(--shilen-border);
    border-radius: 7px;
    background: rgba(12, 8, 5, .96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}

.nav__langs-item a {
    min-height: 34px;
    border-radius: 5px;
    color: #f4dfb6;
}

.nav__langs-item a:hover {
    background: rgba(229, 184, 95, .12);
}

.auth-content {
    min-height: calc(100vh - 118px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: clamp(34px, 7vw, 110px);
    align-items: center;
    padding: 52px 14px 0;
}

.auth-showcase {
    max-width: 650px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--shilen-gold-bright);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffbf41;
    box-shadow: 0 0 15px rgba(255, 191, 65, .8);
}

.auth-showcase__logo {
    display: block;
    width: min(560px, 100%);
    margin: 34px 0 28px;
    filter: drop-shadow(0 0 24px rgba(231, 174, 73, .22));
}

.auth-showcase p {
    max-width: 620px;
    color: rgba(255, 255, 255, .78);
    font-size: 20px;
    line-height: 1.65;
}

.auth-showcase__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.auth-showcase__facts span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(229, 184, 95, .28);
    border-radius: 7px;
    background: rgba(9, 6, 4, .62);
    color: #f5dfaa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.content {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 34px;
    border: 1px solid var(--shilen-border);
    border-radius: 8px;
    background:
        radial-gradient(circle at 85% 12%, rgba(215, 157, 71, .13), transparent 36%),
        linear-gradient(180deg, rgba(17, 12, 8, .94), rgba(7, 5, 3, .92));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 228, 170, .06);
}

.title {
    margin: 0 0 28px;
    color: #fff1d2;
    font-family: 'TrajanL2', serif;
    font-size: 30px;
    line-height: 1.1;
    text-align: left;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .8);
}

.form-group {
    margin-bottom: 18px;
}

.form-control {
    height: 54px;
    border: 1px solid rgba(229, 184, 95, .18);
    border-radius: 7px;
    background: rgba(8, 6, 4, .86);
    color: #fff5dc;
    font-family: 'MontserratL2', sans-serif;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.form-control::placeholder {
    color: rgba(235, 219, 188, .55);
    font-family: 'MontserratL2', sans-serif;
}

.form-control:focus {
    border-color: rgba(235, 186, 92, .68);
    box-shadow: 0 0 0 3px rgba(229, 184, 95, .1), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.password-group {
    position: relative;
}

.password-toggle {
    opacity: .75;
    filter: sepia(1) saturate(.9) brightness(1.2);
}

.checkbox-container {
    color: rgba(255, 244, 220, .76);
    font-family: 'MontserratL2', sans-serif;
    font-size: 14px;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(229, 184, 95, .34);
    border-radius: 5px;
    background: rgba(8, 6, 4, .92);
}

.checkbox-container input:checked ~ .checkmark {
    border-color: #dba650;
    background: linear-gradient(135deg, #e0b660, #a96b2f);
}

.checkbox-container input:checked ~ .checkmark::after {
    left: 6px;
    top: 2px;
    border-color: #fff7df;
}

.login_button button,
.login_button a {
    min-height: 54px;
}

.btn-primary,
.btn-green {
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, #e2b762, #b87534);
    color: #fff;
    font-family: 'MontserratL2', sans-serif;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 18px 42px rgba(205, 142, 54, .28);
}

.btn-primary:hover,
.btn-green:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-gray-no-border {
    border: 1px solid rgba(229, 184, 95, .25);
    border-radius: 7px;
    color: #f7e4b8;
    font-family: 'MontserratL2', sans-serif;
    font-weight: 700;
}

.btn-gray-no-border:hover {
    border-color: rgba(229, 184, 95, .5);
    background: rgba(229, 184, 95, .09);
}

.group-text p,
.group-text a,
.text-danger {
    font-family: 'MontserratL2', sans-serif;
}

.group-text p {
    color: rgba(255, 244, 220, .64);
}

.group-text a {
    margin-left: 5px;
    padding: 0;
    border: 0;
    color: var(--shilen-gold-bright);
}

.text-danger {
    margin-top: 8px;
    color: #ffb081;
    font-size: 13px;
}

.alert-success,
.alert-danger {
    margin: 0 0 22px;
    border-radius: 7px;
}

@media only screen and (max-width: 1100px) {
    .auth_top {
        grid-template-columns: 170px 1fr;
    }

    .auth_top_r {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .auth-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .auth-showcase {
        max-width: 760px;
        text-align: center;
        justify-self: center;
    }

    .auth-showcase__logo {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-showcase__facts {
        justify-content: center;
    }

    .content {
        max-width: 520px;
        justify-self: center;
    }
}

@media only screen and (max-width: 720px) {
    .auth_wrapper {
        width: min(100% - 24px, 560px);
        padding-top: 12px;
    }

    .auth_top {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .shilen-auth-brand {
        justify-self: center;
    }

    .auth_nav_top ul,
    .auth_top_r,
    .auth-showcase__facts {
        flex-wrap: wrap;
        gap: 8px;
    }

    .auth_nav_top a,
    .auth_top_r .btn-accent,
    .nav__langs-selected {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    .auth-content {
        min-height: auto;
        padding: 34px 0 0;
    }

    .auth-showcase p {
        font-size: 16px;
    }

    .auth-showcase__logo {
        margin: 22px auto 18px;
    }

    .content {
        padding: 26px 20px;
    }

    .title {
        font-size: 25px;
    }

    .form-group.group {
        align-items: flex-start;
        gap: 12px;
    }
}
/* L2 Glory shared video background */
.glory-panel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
