﻿:root {
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f2f2f2;
  --muted: #a6a6a6;
  --panel: rgba(11, 11, 13, 0.82);
  --panel-strong: rgba(7, 7, 9, 0.94);
  --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

[hidden] { display: none !important; }
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #050506;
}

html:not(.js-enabled) .auth-layout {
  display: none !important;
}

.no-js-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.no-js-card {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(10, 10, 12, 0.92);
  padding: 22px;
  color: #f2f2f2;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  font-family: var(--font-ios);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(118deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.56)),
    url("/assets/bg.png") center / cover fixed no-repeat;
}

@keyframes auth-grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-56px, -56px, 0);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: -56px;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  mix-blend-mode: screen;
  opacity: 0.05;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 42%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 42%, rgba(0, 0, 0, 0) 100%);
  animation: auth-grid-drift 24s linear infinite;
}

body::after {
  content: none;
}

html.is-protected,
body.is-protected,
body.is-protected * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.is-protected img,
body.is-protected video,
body.is-protected canvas {
  -webkit-user-drag: none;
  user-drag: none;
}

.auth-layout {
  min-height: 100dvh;
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 20px 0 0;
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), filter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-page-switching .auth-layout {
  opacity: 0;
  transform: translateY(8px) scale(0.996);
  filter: blur(1px);
  pointer-events: none;
}

.auth-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(130deg, rgba(14, 14, 14, 0.84), rgba(7, 7, 7, 0.95));
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translateY(-18px);
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  animation: auth-topbar-enter 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.06s forwards;
}

.auth-brand {
  text-decoration: none;
  color: #f0f0f0;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-brand span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  padding: 3px 7px;
  color: #d5d5d5;
}

.auth-nav {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.auth-nav a {
  text-decoration: none;
  color: #bdbdbd;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-nav a.is-active {
  color: #111;
  background: #f1f1f1;
}

.auth-home {
  justify-self: end;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #ededed;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.auth-home:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
  transform: none;
}

.auth-main {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 128px);
  padding: 0;
}

.auth-card {
  position: relative;
  isolation: isolate;
  width: min(420px, 100%);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: linear-gradient(150deg, var(--panel), var(--panel-strong));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  padding: 16px 24px 24px;
  opacity: 0;
  transform: translateY(22px) scale(0.988);
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  animation: auth-card-enter 0.84s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.auth-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  justify-content: center;
  width: 100%;
}

.auth-card-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.auth-card-brand span {
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(1.36rem, 3vw, 1.68rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-align: left;
}

.auth-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.52;
  font-size: 0.95rem;
}

.auth-form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #bebebe;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  padding: 0 13px;
  font-family: var(--font-ios);
  font-size: 0.95rem;
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-field {
  position: relative;
}

.auth-field input {
  padding-left: 42px;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-color: rgba(200, 200, 200, 0.92);
  color: rgba(200, 200, 200, 0.92);
  opacity: 0.9;
  pointer-events: none;
  transition: background-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.auth-input-icon--user {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-input-icon--mail {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-input-icon--pass {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-field.is-valid .auth-input-icon {
  background-color: rgba(92, 214, 133, 0.95);
  filter: drop-shadow(0 0 6px rgba(92, 214, 133, 0.35));
}

.auth-field.is-invalid .auth-input-icon {
  background-color: rgba(231, 98, 98, 0.95);
  filter: drop-shadow(0 0 6px rgba(231, 98, 98, 0.3));
}

.auth-form input:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.auth-btn {
  margin-top: 10px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f0;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.auth-btn--solid {
  color: #111;
  border-color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(140deg, #ffffff, #dcdcdc);
}

.auth-btn:hover {
  transform: none;
  filter: brightness(1.04);
}

.auth-switch {
  margin-top: 18px;
  color: #9f9f9f;
  font-size: 0.85rem;
  text-align: center;
}

.auth-switch a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-switch a:hover {
  color: #ffffff;
  opacity: 0.95;
}

.auth-check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px !important;
  color: #c6c6c6;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 6px;
  cursor: pointer;
}

.auth-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  transform: translateY(1px);
}

.auth-check input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.14s ease;
  background: #0f1114;
}

.auth-check input:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.1);
}

.auth-check input:checked {
  background: #f2f2f2;
  border-color: #f2f2f2;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.auth-check input:checked::before {
  transform: scale(1);
}

.auth-check input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.auth-check a {
  color: #ededed;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-check span {
  display: block;
  padding-top: 1px;
}

.auth-captcha {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  min-height: 66px;
}

.auth-toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9999;
  display: grid;
  gap: 10px;
  pointer-events: none;
  width: min(92vw, 420px);
  justify-items: center;
}

.auth-toast {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, rgba(17, 17, 19, 0.96), rgba(9, 9, 11, 0.96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  padding: 11px 14px;
  color: #d2d2d2;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.auth-toast--warn {
  border-color: rgba(156, 156, 156, 0.42);
  background: linear-gradient(160deg, rgba(20, 20, 22, 0.97), rgba(10, 10, 12, 0.97));
  color: #d7d7d7;
}

#registerTitle {
  text-align: center;
}

#loginTitle {
  text-align: center;
}

.auth-nav a {
  transition: none;
}

.auth-legal-card {
  width: min(1080px, 100%);
}

.auth-legal-title {
  text-align: center !important;
}

.auth-legal-meta {
  margin-top: 8px !important;
  text-align: center;
  font-size: 0.84rem !important;
  letter-spacing: 0.02em;
  color: #a7a7a7 !important;
}

.auth-legal-content {
  margin-top: 18px;
  color: #c8c8c8;
  line-height: 1.7;
  font-size: 0.96rem;
  padding-top: 4px;
}

.terms-meta-grid {
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 540px;
}

.terms-date-card {
  position: relative;
  min-height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  padding: 13px 14px 13px 44px;
}

.terms-date-card::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  width: 17px;
  height: 17px;
  background: rgba(242, 242, 242, 0.88);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.terms-date-card span {
  display: block;
  color: #8f8f8f;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.terms-date-card strong {
  display: block;
  margin-top: 7px;
  color: #eeeeee;
  font-size: 0.96rem;
  line-height: 1.2;
}

.auth-legal-content h2 {
  margin: 24px 0 10px;
  font-size: 1.08rem;
  color: #f1f1f1;
}

.auth-legal-content h2:first-child {
  margin-top: 0;
}

.auth-legal-content p {
  margin: 0 0 10px;
}

.auth-legal-block {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.terms-contact-list {
  display: grid;
  gap: 6px;
}

.terms-contact-list p {
  margin: 0;
}

.auth-legal-list {
  margin: 0;
  padding-left: 18px;
}

.auth-legal-list li {
  margin: 0 0 6px;
}

body.elua-simple .auth-topbar {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.48);
}

body.elua-simple .auth-legal-card {
  width: min(1080px, 100%);
  border-radius: 16px;
  background: rgba(10, 10, 12, 0.9);
  box-shadow: none;
  padding: 24px;
}

body.elua-simple .auth-card-brand {
  margin-bottom: 10px;
}

body.elua-simple .auth-legal-title {
  font-size: 1.34rem;
  letter-spacing: -0.01em;
}

body.elua-simple .auth-legal-meta {
  margin-top: 4px !important;
  color: #8f8f8f !important;
}

body.elua-simple .auth-legal-content {
  margin-top: 14px;
  line-height: 1.62;
}

body.elua-simple .auth-legal-content h2 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

body.elua-simple .auth-legal-block {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 14px;
}

body.elua-simple .auth-legal-block strong {
  color: #f0f0f0;
  margin-right: 6px;
}

.footer {
  margin-top: 28px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  background: linear-gradient(130deg, rgba(14, 14, 14, 0.8), rgba(7, 7, 7, 0.92));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(20px);
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  animation: auth-footer-enter 0.76s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes auth-topbar-enter {
  from {
    opacity: 0;
    transform: translateY(-24px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes auth-card-enter {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.982);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes auth-footer-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.footer-wrap {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 16px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) minmax(180px, 0.75fr) minmax(220px, 0.85fr);
  gap: clamp(24px, 4vw, 88px);
  align-items: start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-logo {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.16));
}

.footer-brand-name {
  color: #f1f5ff;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 380px;
  color: #b6b6b6;
  line-height: 1.5;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-block h3 {
  margin: 0 0 12px;
  color: #a8a8a8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: #d4d4d4;
  text-decoration: none;
  line-height: 1.35;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #f2f6ff;
  transform: none;
}

.footer-links--social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.footer-links--social a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244, 244, 244, 0.78);
}

.footer-divider {
  display: block;
  height: 1px;
  margin: 24px 0 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.footer-legal p {
  margin: 0;
  color: #949494;
  line-height: 1.4;
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-meta {
  margin: 0;
  color: #7f7f7f;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}

@media (max-width: 860px) {
  .auth-topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .auth-home {
    justify-self: center;
  }

  .auth-card {
    width: min(470px, 100%);
  }
}

@media (max-width: 640px) {
  .auth-layout {
    width: calc(100% - 16px);
    padding: 12px 0 0;
    gap: 14px;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-card h1 {
    font-size: 1.35rem;
  }

  .auth-main {
    min-height: calc(100dvh - 120px);
    padding: 0;
  }

  .terms-meta-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    margin-top: 0;
  }

  .footer-wrap {
    width: calc(100% - 24px);
    padding: 24px 0 14px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-brand-name {
    font-size: 1.3rem;
  }

  .footer-brand p {
    margin-top: 10px;
    max-width: none;
    font-size: 0.9rem;
  }

  .footer-block h3 {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  .footer-divider {
    margin: 16px 0 12px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }

  .footer-legal p {
    font-size: 0.8rem;
  }
}

.profile-main {
  align-items: center;
  align-content: center;
  padding-top: 4px;
  gap: 24px;
}

.profile-panel {
  width: min(720px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(8, 8, 10, 0.9);
  padding: 20px 20px 18px;
  margin-top: -20px;
}

.profile-title {
  text-align: center;
  margin-top: -100px;
}

.profile-title h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile-title p {
  margin: 8px 0 0;
  color: #8f8f8f;
  font-size: 1rem;
}

.profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  flex: 0 0 60px;
}

.profile-avatar-trigger {
  border: 0;
  padding: 0;
  appearance: none;
  cursor: pointer;
  position: relative;
  line-height: 0;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.profile-avatar-trigger:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.profile-avatar-trigger::after {
  content: "Сменить";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.52);
  color: #f2f2f2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.profile-avatar-trigger:hover::after,
.profile-avatar-trigger:focus-visible::after {
  opacity: 1;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.profile-avatar img.is-ready {
  opacity: 1;
}

.profile-head-copy h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1;
  font-weight: 700;
}

.profile-head-copy p {
  margin: 5px 0 0;
  color: #9a9a9a;
  font-size: 0.94rem;
}


.profile-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profile-card {
  border: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px 4px 0;
}

.profile-card--head {
  padding: 2px 4px;
}

.profile-card--data {
  padding-top: 0;
}

.profile-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px 0;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-section-head h3 {
  margin: 0;
  color: #b8b8b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-section-head--data h3 {
  color: #8f8f8f;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.profile-section-head--data h3::before {
  content: "";
  width: 13px;
  height: 13px;
  background-color: rgba(130, 130, 130, 0.95);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M7 12h.01'/%3E%3Cpath d='M11 12h.01'/%3E%3Cpath d='M15 12h2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M7 12h.01'/%3E%3Cpath d='M11 12h.01'/%3E%3Cpath d='M15 12h2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.profile-grid--data {
  margin-top: 0;
  grid-template-columns: 1fr;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 0;
}

.profile-row:last-of-type {
  border-bottom: 0;
}

.profile-row span,
.profile-label {
  color: #9f9f9f;
  font-size: 0.9rem;
}

.profile-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.profile-label::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: rgba(162, 162, 162, 0.95);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.profile-label--uid::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='9' x2='20' y2='9'/%3E%3Cline x1='4' y1='15' x2='20' y2='15'/%3E%3Cline x1='10' y1='3' x2='8' y2='21'/%3E%3Cline x1='16' y1='3' x2='14' y2='21'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='9' x2='20' y2='9'/%3E%3Cline x1='4' y1='15' x2='20' y2='15'/%3E%3Cline x1='10' y1='3' x2='8' y2='21'/%3E%3Cline x1='16' y1='3' x2='14' y2='21'/%3E%3C/svg%3E");
}

.profile-label--group::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M6 20a6 6 0 0 1 12 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M6 20a6 6 0 0 1 12 0'/%3E%3C/svg%3E");
}

.profile-label--login::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M21 3v18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M21 3v18'/%3E%3C/svg%3E");
}

.profile-label--mail::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}


.profile-label--date::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.profile-label--hwid::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M7 12h.01'/%3E%3Cpath d='M11 12h.01'/%3E%3Cpath d='M15 12h2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M7 12h.01'/%3E%3Cpath d='M11 12h.01'/%3E%3Cpath d='M15 12h2'/%3E%3C/svg%3E");
}

.profile-row strong {
  color: #ececec;
  font-size: 0.94rem;
  font-weight: 650;
}


.secret-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.secret-value {
  display: inline-block;
  filter: blur(4px);
  opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.secret-toggle.is-revealed .secret-value {
  filter: blur(0);
  opacity: 1;
}

.profile-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-action-btn {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  min-height: 42px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ececec;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.profile-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: none;
}

.profile-action-btn--primary {
  color: #111216;
  border-color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(132deg, #ffffff, #dbdbdb);
}

.profile-action-btn--primary:hover {
  background: linear-gradient(132deg, #ffffff, #dbdbdb);
  border-color: rgba(255, 255, 255, 0.85);
}

.profile-action-btn--danger {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ececec;
  background: rgba(255, 255, 255, 0.03);
  margin-left: auto;
}

.profile-action-btn--danger:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.auth-topbar--simple {
  grid-template-columns: 1fr auto;
}

.profile-anim {
  opacity: 0;
  transform: translateY(14px);
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  animation: profile-item-in 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.profile-grid .profile-card:nth-child(1) {
  animation-delay: 0.14s;
}

.profile-grid .profile-card:nth-child(2) {
  animation-delay: 0.24s;
}

.profile-grid .profile-card:nth-child(3) {
  animation-delay: 0.34s;
}

.profile-title.profile-anim {
  animation-delay: 0.08s;
}

@keyframes profile-item-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}


@media (max-width: 760px) {
  .profile-main {
    gap: 18px;
  }

  .profile-title h1 {
    font-size: 1.36rem;
  }

  .profile-title p {
    font-size: 0.84rem;
  }

  .profile-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-action-btn--danger {
    margin-left: 0;
  }
}

/* disable gear spin */
.gear, .icon-gear, [class*='gear'] {
  animation: none !important;
}
