:root {
  --account-bg: #020812;
  --account-card: rgba(10, 28, 47, .9);
  --account-line: rgba(115, 205, 235, .24);
  --account-text: #edf8ff;
  --account-muted: #91a9bb;
  --account-accent: #55d8ff;
  --account-accent-2: #25b5df;
  --account-error: #ff8a8a;
  --account-success: #7ee6ad;
  --account-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

[data-theme="light"] {
  --account-bg: #eef7fb;
  --account-card: rgba(255, 255, 255, .94);
  --account-line: rgba(19, 151, 184, .27);
  --account-text: #102b38;
  --account-muted: #587184;
  --account-accent: #0787aa;
  --account-accent-2: #20a9d2;
  --account-error: #b4233a;
  --account-success: #087a48;
  --account-shadow: 0 22px 60px rgba(53, 151, 181, .15);
}

.account-page {
  min-height: 100vh;
  background-color: var(--account-bg);
  background-image: linear-gradient(rgba(2, 8, 18, .16), rgba(2, 8, 18, .3)), url('/src/admin-login/airport-background-v1.jpg');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--account-text);
}

[data-theme="light"] .account-page {
  background-image: linear-gradient(rgba(239, 249, 252, .86), rgba(231, 246, 251, .9)), url('/src/admin-login/airport-background-v1.jpg');
}

.account-page [hidden] { display: none !important; }

.account-page > header {
  border-bottom-color: var(--account-line);
  background: rgba(2, 8, 18, .76);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .account-page > header { background: rgba(250, 254, 255, .82); }

.account-nav-shell .theme-logo { width: 80px; height: auto; }
.account-nav-actions { display: flex; align-items: center; gap: 14px; }
.account-back-link { color: var(--account-accent); text-decoration: none; font-weight: 650; }
.account-nav-actions .main-nav-theme { border-color: var(--account-line); color: var(--account-text); }

.account-main {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 109px);
  min-height: calc(100svh - 109px);
  box-sizing: border-box;
  margin-inline: 0;
  padding-right: clamp(12px, 2vw, 32px);
  padding-left: clamp(12px, 2vw, 32px);
  padding-top: clamp(30px, 4vw, 70px);
  padding-bottom: 70px;
}

.account-notice {
  margin: 0 auto 18px;
  max-width: 760px;
  padding: 14px 18px;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  background: var(--account-card);
  color: var(--account-success);
  box-shadow: var(--account-shadow);
  transition: opacity .5s ease, transform .5s ease;
}
.account-notice.is-error { color: var(--account-error); }
.account-notice.is-transient {
  position: fixed;
  z-index: 1200;
  top: 88px;
  left: 50%;
  width: min(720px, calc(100% - 32px));
  margin: 0;
  transform: translateX(-50%);
}
.account-notice.is-fading { opacity: 0; transform: translate(-50%, -8px); }

.account-auth-card {
  width: min(600px, calc(100% - 32px));
  min-height: 640px;
  margin: 0;
  padding: clamp(42px, 5vh, 64px) clamp(38px, 3.4vw, 58px) clamp(34px, 4vh, 48px);
  border: 1px solid rgba(115, 205, 235, .18);
  border-radius: 30px;
  background-color: rgba(5, 18, 31, .72);
  background-image: url('/src/admin-login/glass-panel-v1.png');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: var(--account-shadow);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .account-auth-card {
  border-color: rgba(19, 151, 184, .26);
  background-color: rgba(255, 255, 255, .94);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(228, 244, 249, .94));
}

.account-auth-brand { margin-bottom: 24px; text-align: center; }
.account-auth-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  object-fit: contain;
}
.account-auth-logo.theme-logo--dark {
  filter: drop-shadow(0 0 3px rgba(255,255,255,.95))
          drop-shadow(0 0 9px rgba(48,220,255,.95))
          drop-shadow(0 0 22px rgba(0,135,255,.78));
}
[data-theme="light"] .account-auth-logo.theme-logo--light {
  filter: drop-shadow(0 0 3px rgba(255,255,255,.98))
          drop-shadow(0 0 10px rgba(48,220,255,.62))
          drop-shadow(0 0 20px rgba(0,135,255,.28));
}
.account-auth-brand p {
  margin: 0;
  color: var(--account-accent);
  font-size: .88rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0,190,255,.58);
}

.account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  padding: 5px;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: rgba(100, 190, 220, .08);
}
.account-tab {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  background: transparent;
  color: var(--account-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.account-tab.is-active {
  border-color: rgba(37, 186, 255, .76);
  background: linear-gradient(180deg, #25baff 0%, #087bdc 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,132,255,.22), inset 0 1px 0 rgba(255,255,255,.24);
  text-shadow: 0 1px 2px rgba(5, 79, 104, .28);
}

.account-form { display: grid; gap: 16px; }
.account-form h1,
.account-form h2 { margin: 0 0 4px; color: var(--account-text); }
.account-auth-card .account-form > h1 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 560;
  letter-spacing: -.035em;
  text-align: center;
}
.account-auth-subtitle { margin-top: -4px !important; text-align: center; }
.account-form p { margin: 0; color: var(--account-muted); line-height: 1.55; }
.account-form label { display: grid; gap: 7px; color: var(--account-text); font-weight: 600; }
.account-form label > span { color: var(--account-muted); font-size: .82em; font-weight: 400; }
.account-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--account-line);
  border-radius: 11px;
  padding: 13px 14px;
  background: rgba(4, 17, 28, .56);
  color: var(--account-text);
  font: inherit;
  outline: none;
}
.account-form input:focus {
  border-color: var(--account-accent);
  box-shadow: 0 0 0 3px rgba(85, 216, 255, .12);
}
.account-auth-input { position: relative; display: block; }
.account-auth-input > .account-auth-input-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 16px;
  width: 31px;
  height: 31px;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 8px rgba(36,211,255,.52));
  pointer-events: none;
}
.account-auth-card .account-auth-input input {
  height: 62px;
  padding-right: 62px;
  padding-left: 62px;
  border-color: rgba(115,162,196,.28);
  border-radius: 9px;
  background: rgba(5,18,29,.58);
  box-shadow: inset 0 0 20px rgba(0,0,0,.2);
  font-size: 17px;
}
.account-auth-card .account-auth-input input::placeholder { color: #64788b; opacity: 1; }
.account-auth-card .account-auth-input input:focus {
  border-color: rgba(48,216,255,.82);
  background: rgba(5,22,36,.8);
  box-shadow: 0 0 0 3px rgba(0,190,255,.12), inset 0 0 22px rgba(0,0,0,.22);
}
.account-password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 8px;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
  cursor: pointer;
}
.account-password-toggle:hover,
.account-password-toggle:focus-visible { background: rgba(27,190,255,.08); }
.account-password-toggle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: .82;
  filter: drop-shadow(0 0 8px rgba(36,211,255,.48));
}
[data-theme="light"] .account-form input {
  background: rgba(255, 255, 255, .96);
  box-shadow: inset 0 0 12px rgba(19, 151, 184, .03);
}
[data-theme="light"] .account-auth-card .account-auth-input input {
  border-color: rgba(22,145,184,.3);
  background: rgba(255,255,255,.92);
  color: #102b38;
  box-shadow: inset 0 0 18px rgba(7,123,155,.05);
}
[data-theme="light"] .account-auth-card .account-auth-input input:focus {
  border-color: rgba(8,164,210,.7);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,190,255,.12), inset 0 0 18px rgba(7,123,155,.04);
}
.account-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-field-hint { margin-top: -10px !important; font-size: .85rem; }

.account-primary,
.account-secondary {
  border: 0;
  border-radius: 11px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.account-primary {
  border: 1px solid rgba(37, 186, 255, .76);
  background: linear-gradient(180deg, #25baff 0%, #087bdc 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,132,255,.25), inset 0 1px 0 rgba(255,255,255,.26);
  text-shadow: 0 1px 2px rgba(5, 79, 104, .28), 0 0 12px rgba(255,255,255,.12);
}
.account-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 13px 34px rgba(0,153,255,.35), inset 0 1px 0 rgba(255,255,255,.28);
}
.account-primary:disabled { opacity: .38; filter: saturate(.35); cursor: not-allowed; box-shadow: none; }
.account-secondary {
  border: 1px solid var(--account-line);
  background: rgba(80, 190, 225, .1);
  color: var(--account-text);
}
[data-theme="light"] .account-secondary { background: rgba(226, 244, 249, .96); }
.account-link-button {
  justify-self: center;
  border: 0;
  background: none;
  color: var(--account-accent);
  font: inherit;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(0,166,255,.42);
}
.account-consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; }
.account-consent input { width: auto; margin-top: 3px; }
.account-consent a,
.account-consent a:visited,
.account-consent a:hover,
.account-consent a:focus { color: inherit; text-decoration-color: currentColor; }

.avatar-fieldset { margin: 0; padding: 0; border: 0; }
.avatar-fieldset legend { margin-bottom: 10px; font-weight: 700; }
.avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.account-auth-card .avatar-grid { grid-template-columns: repeat(6, 1fr); }
.avatar-option,
.avatar-preview { background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.avatar-option {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 14px;
  background-color: #071b2d;
  cursor: pointer;
}
[data-theme="light"] .avatar-option,
[data-theme="light"] .avatar-preview { background-color: #e5f3f8; }
.avatar-option.is-empty,
.avatar-preview.is-empty {
  display: grid;
  place-items: center;
  background-image: none;
  color: var(--account-muted);
  text-align: center;
}
.avatar-option.is-empty::before { content: 'Без\A аватара'; white-space: pre; font-size: .72rem; font-weight: 700; line-height: 1.15; }
.avatar-preview.is-empty::before { content: 'Без аватара'; padding: 8px; font-size: .72rem; line-height: 1.15; }
.avatar-option.is-selected { border-color: var(--account-accent); box-shadow: 0 0 0 3px rgba(85, 216, 255, .15); }

.account-dashboard { display: grid; max-width: 1120px; margin: 0 auto; gap: 20px; }
.account-dashboard-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--account-line);
  border-radius: 22px;
  background: var(--account-card);
  box-shadow: var(--account-shadow);
  backdrop-filter: blur(18px);
}
.avatar-preview { width: 92px; height: 92px; border-radius: 22px; background-color: #071b2d; }
.account-dashboard-head h1,
.account-dashboard-head p { margin: 0; }
.account-dashboard-head #profileEmail { margin-top: 5px; color: var(--account-muted); }
.account-kicker {
  margin: 0 0 7px !important;
  color: var(--account-accent) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 800;
}
.account-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 20px; }
.account-card {
  padding: 24px;
  border: 1px solid var(--account-line);
  border-radius: 20px;
  background: var(--account-card);
  box-shadow: var(--account-shadow);
  backdrop-filter: blur(18px);
}
.account-sidebar { display: grid; gap: 20px; align-content: start; }
.plan-card h2,
.plan-card p { margin-top: 0; }
.plan-card .account-secondary { width: 100%; }
.account-auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 0;
  color: #8393a1;
  font-size: 13px;
}
.account-auth-secure span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #23e66f;
  box-shadow: 0 0 13px rgba(35,230,111,.78);
}

@media (max-width: 760px) {
  .account-main { padding-top: 24px; }
  .account-auth-card { width: 100%; min-height: 0; margin: 0 auto; padding: 28px 20px; border-radius: 22px; }
  .account-auth-logo { width: 72px; height: 72px; }
  .account-two-columns,
  .account-dashboard-grid { grid-template-columns: 1fr; }
  .avatar-grid { grid-template-columns: repeat(4, 1fr); }
  .account-auth-card .avatar-grid { grid-template-columns: repeat(4, 1fr); }
  .account-dashboard-head { grid-template-columns: auto 1fr; }
  .account-dashboard-head .account-secondary { grid-column: 1 / -1; }
  .account-back-link { font-size: .9rem; }
  .logo-section-title { display: none; }
}

@media (max-width: 480px) {
  .account-nav-actions { gap: 8px; }
  .account-back-link { max-width: 96px; line-height: 1.2; text-align: right; }
  .account-auth-card .account-form > h1 { font-size: 29px; }
}
