:root {
    --qsr-bg: #07111f;
    --qsr-bg-2: #0b1728;
    --qsr-bg-3: #12233b;
    --qsr-white: #ffffff;
    --qsr-text: #d8e1ef;
    --qsr-muted: #94a3b8;
    --qsr-dark: #0f172a;
    --qsr-light-card: #ffffff;
    --qsr-primary: #38bdf8;
    --qsr-primary-2: #3b82f6;
    --qsr-accent: #7c3aed;
    --qsr-success: #10b981;
    --qsr-danger: #ef4444;
    --qsr-warning: #f59e0b;
    --qsr-shadow-dark: 0 30px 80px rgba(0, 0, 0, 0.28);
    --qsr-shadow-light: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--qsr-bg);
    color: var(--qsr-white);
}

p,
li,
a,
span,
h1,
h2,
h3,
h4,
h5,
h6,
label,
input,
button {
    text-transform: none !important;
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: 0.25s ease;
    background: rgba(7, 17, 31, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-header.scrolled {
    background: rgba(7, 17, 31, 0.96);
}

.main-navbar {
    min-height: 86px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--qsr-primary), var(--qsr-accent));
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.28);
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.02;
}

.brand-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.navbar-menu-wraper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.navbar-nav {
    margin-left: auto;
    margin-right: 18px;
    gap: 4px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 14px !important;
    border-radius: 12px;
    transition: 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

.menu-toggler-btn span {
    background: #fff !important;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg, var(--qsr-primary-2), var(--qsr-primary));
    box-shadow: 0 18px 35px rgba(56, 189, 248, 0.2);
    transition: 0.22s ease;
}

.header-cta:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    background:
            radial-gradient(circle at 10% 18%, rgba(56, 189, 248, 0.2), transparent 24%),
            radial-gradient(circle at 88% 16%, rgba(124, 58, 237, 0.18), transparent 24%),
            radial-gradient(circle at 60% 78%, rgba(59, 130, 246, 0.12), transparent 26%),
            linear-gradient(180deg, #07111f 0%, #091523 45%, #0b182a 100%);
    overflow: hidden;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 78px 78px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 88%);
    opacity: 0.35;
    pointer-events: none;
}

.auth-wrap {
    position: relative;
    z-index: 2;
}

.auth-grid {
    align-items: center;
}

.auth-info {
    max-width: 560px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #dff6ff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--qsr-success);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.12);
}

.auth-title {
    margin: 0 0 20px;
    font-size: clamp(42px, 5.6vw, 72px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.055em;
    color: #fff;
}

.auth-title .accent {
    background: linear-gradient(135deg, #e0f2fe, #7dd3fc 55%, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-text {
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

.auth-points {
    display: grid;
    gap: 14px;
}

.auth-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.65;
}

.auth-point i {
    color: #7dd3fc;
    margin-top: 3px;
}

.auth-card {
    position: relative;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(18, 35, 59, 0.96), rgba(10, 21, 37, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--qsr-shadow-dark);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.auth-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -60px;
    bottom: -60px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 68%);
    pointer-events: none;
}

.auth-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.auth-card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-card-brand .mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--qsr-primary), var(--qsr-accent));
    color: #fff;
    font-size: 16px;
}

.auth-card-brand strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.auth-card-brand span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.52);
}

.auth-card-status {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.auth-card-content {
    position: relative;
    z-index: 2;
}

.auth-form-title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
}

.auth-form-subtitle {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.alert-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #fecaca;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #d1fae5;
}

.main-form-wraper {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.main-form {
    margin: 0;
}

.input-wraper {
    position: relative;
    margin-bottom: 18px;
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* отключаем старое плавающее поведение label из шаблона */
.input-wraper > label:not(.field-label) {
    display: none !important;
}

.input-wraper .b-border {
    display: none !important;
}

.text-input {
    width: 100%;
    height: 58px;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    padding: 0 18px !important;
    font-size: 15px !important;
    line-height: 58px !important;
    box-shadow: none !important;
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.34) !important;
    opacity: 1 !important;
}

.text-input:focus {
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08) !important;
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.text-input:focus {
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08) !important;
}

.check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 22px;
    flex-wrap: wrap;
}

.keep-me-logged-in {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

.check-input {
    width: 18px;
    height: 18px;
    accent-color: #38bdf8;
}

.lbl-for-checkbox {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 14px;
    font-weight: 600;
}

.forgot-link {
    color: #93c5fd;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.forgot-link:hover {
    color: #dbeafe;
}

.submit-btn {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--qsr-primary-2), var(--qsr-primary));
    box-shadow: 0 18px 35px rgba(56, 189, 248, 0.2);
    transition: 0.22s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.auth-bottom-note {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.redirect-note {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
}

.page-footer {
    background: #060d18;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-col-title {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    margin-bottom: 22px !important;
}

.footer-text-about-us,
.footer-menu-link,
.contact-info-card .info,
.contact-info-card span.info,
.creadits,
.terms-links a {
    color: rgba(255,255,255,0.62) !important;
}

.footer-menu-link:hover,
.contact-info-card a.info:hover,
.terms-links a:hover,
.creadits .link:hover {
    color: #fff !important;
}

.contact-info-card {
    margin-bottom: 14px;
}

.contact-info-card .icon {
    color: #8bdcff !important;
}

.social-icons .sc-link {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

.social-icons .sc-link:hover {
    background: linear-gradient(135deg, var(--qsr-primary-2), var(--qsr-primary)) !important;
}

.copyrights {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.loading-screen {
    background: #08111e !important;
}

.spinner > div {
    background-color: #67e8f9 !important;
}

.back-to-top {
    background: linear-gradient(135deg, var(--qsr-primary-2), var(--qsr-primary)) !important;
}

@media (max-width: 991.98px) {
    .navbar-menu-wraper {
        display: block;
    }

    .navbar-nav {
        margin-right: 0;
        margin-top: 14px;
        margin-bottom: 14px;
    }

    .auth-page {
        padding-top: 130px;
    }

    .auth-info {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .auth-title {
        font-size: 42px;
        line-height: 1.03;
    }

    .auth-card {
        padding: 22px;
    }
}
/* =========================================================
LOGO
========================================================= */
.brand {
    display: flex;
    align-items: center;
    min-height: 80px;
}

.brand .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    top: 2px; /* чуть ниже */
}

.brand .logo img {
    display: block;
    max-height: 60px;
    width: auto;
}
