﻿:root {
  --bg: #070c15;
  --panel: #151b24;
  --panel-border: rgba(255, 255, 255, 0.06);
  --field: #131922;
  --field-border: rgba(255, 255, 255, 0.07);
  --text: #e8ebf0;
  --muted: #8d949f;
  --danger: #f34d57;
  --button: #3a4049;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans Georgian", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% -20%, #0f1622 0%, var(--bg) 38%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.login-modal {
  width: min(100%, 576px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #090e16 0%, #070c14 100%);
}

.promo-banner {
  padding: 92px 24px 0;
  text-align: center;
}

.ufc-row {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.ufc-mark {
  font-size: 48px;
  line-height: 0.9;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  color: #e9192f;
}

.ufc-divider {
  width: 2px;
  height: 44px;
  background: rgba(255, 255, 255, 0.84);
}

.aj-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #d9152f;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.promo-sub {
  margin: 14px 0 0;
  color: #e7eaf0;
  font-size: 20px;
  font-weight: 700;
}

.login-content {
  padding: 34px 24px 0;
}

.login-form {
  display: grid;
  gap: 20px;
}

.input-shell {
  min-height: 58px;
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--field-border);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(24, 31, 41, 0.62), rgba(18, 24, 33, 0.62));
}

.input-icon {
  width: 0;
  overflow: hidden;
  color: transparent;
}

.input-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.input-shell input::placeholder {
  color: #8f96a2;
}

.ghost-icon {
  display: grid;
  place-items: center;
  background: transparent;
  color: #8f96a2;
  padding: 0;
}

.ghost-icon svg {
  width: 24px;
  height: 24px;
}

.submit-button {
  margin-top: 56px;
  min-height: 64px;
  border-radius: 14px;
  background: var(--button);
  color: #cdd2d9;
  font-size: 24px;
  font-weight: 500;
}

.submit-button.is-active {
  background: #1fa74a;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 167, 74, 0.35);
}

.submit-button.is-loading .submit-button-label {
  opacity: 0;
}

.submit-button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  margin-left: -11px;
  border: 2.5px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-spinner 0.75s linear infinite;
}

.form-status {
  min-height: 20px;
  margin: 2px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status[data-state="error"] {
  color: #f08d8d;
}

.page-footer {
  margin-top: auto;
  min-height: 90px;
  padding: 22px 24px 26px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
}

.age {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  position: relative;
}

.legal {
  display: grid;
  gap: 4px;
}

.legal strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.legal span {
  color: #8e96a2;
  font-size: 12px;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
}

.lang {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 24px;
}

.top-notice {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 1200;
  width: min(calc(100% - 16px), 540px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid rgba(235, 98, 98, 0.22);
  border-radius: 12px;
  background: #fffefe;
  color: #141414;
  transform: translateX(-50%);
}

.top-notice[hidden] { display: none; }
.top-notice-icon { width: 28px; height: 28px; flex: 0 0 28px; color: var(--danger); }
.top-notice-icon svg { width: 100%; height: 100%; display: block; }
.top-notice-text { flex: 1; margin: 0; font-size: 14px; }
.top-notice-close { width: 26px; height: 26px; display: grid; place-items: center; background: transparent; color: #6f7379; }
.top-notice-close svg { width: 20px; height: 20px; }

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 4, 4, 0.58);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.overlay[hidden] {
  display: none;
}

.year-modal {
  position: relative;
  width: min(100%, 392px);
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 27, 28, 0.98), rgba(24, 25, 26, 1));
}

.year-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

.year-modal h2 {
  margin: 28px 0 14px;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
}

.modal-copy {
  margin: 0 0 18px;
  color: #d6d6d6;
  text-align: center;
}

.year-form { display: grid; gap: 14px; }

.year-line-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #26282a;
  color: #ffffff;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.year-submit-button {
  width: 100%;
  margin-top: 0;
  min-height: 56px;
  font-size: 20px;
}

.submit-button:disabled { cursor: wait; opacity: 0.7; }

@keyframes button-spinner {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  .promo-banner { padding-top: 84px; }
  .ufc-mark { font-size: 44px; }
  .ufc-divider { height: 40px; }
  .aj-badge { width: 36px; height: 36px; font-size: 30px; border-radius: 9px; }
  .promo-sub { font-size: 18px; }

  .login-content { padding: 28px 24px 0; }
  .input-shell { min-height: 56px; }
  .input-shell input { font-size: 16px; }
  .submit-button { min-height: 60px; font-size: 20px; margin-top: 48px; }
}
