:root {
  --blue-giant: #471aff;
  --purple-nebula: #9500ff;
  --comet-blue: #00bfff;
  --purple-pulsar: #6e1aff;
  --dark-matter: #0d001a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --error: #ff6b8a;
  --success: #4ade80;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  color-scheme: dark;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(71, 26, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(149, 0, 255, 0.25), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 191, 255, 0.08), transparent 70%),
    linear-gradient(160deg, #0d001a 0%, #150028 45%, #0a0014 100%);
}

.notice-bar {
  width: 100%;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-giant), var(--purple-nebula));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.landing {
  padding: 28px 20px 48px;
  min-height: calc(100vh - 42px);
}

.landing__inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.landing__header {
  text-align: center;
  margin-bottom: 20px;
}

.landing__tagline {
  margin-top: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.landing__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--blue-giant), var(--purple-nebula), var(--comet-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing__banner {
  margin-bottom: 20px;
}

.landing__banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(71, 26, 255, 0.25);
}

.landing__about,
.landing__steps {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(16px);
}

.landing__about-title,
.landing__steps-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.landing__about-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.landing__steps-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.landing__steps-list li::marker {
  color: var(--comet-blue);
  font-weight: 700;
}

.page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding: 48px 20px 64px;
  min-height: calc(100vh - 42px);
}

.login-card {
  width: 100%;
  padding: 28px 24px 24px;
  background: rgba(18, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 16px 48px rgba(71, 26, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.login-card__head {
  text-align: center;
  margin-bottom: 24px;
}

.login-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--comet-blue);
  margin-bottom: 6px;
}

.login-card__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.logo-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  width: 96px;
  height: auto;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-box-shadow: 0 0 0 1000px #1a1224 inset !important;
  box-shadow: 0 0 0 1000px #1a1224 inset !important;
  transition: background-color 99999s ease-out 0s;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.field input:focus {
  border-color: var(--blue-giant);
  box-shadow: 0 0 0 3px rgba(71, 26, 255, 0.25);
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input:focus-within {
  border-color: var(--blue-giant);
  box-shadow: 0 0 0 3px rgba(71, 26, 255, 0.25);
}

.phone-input .prefix {
  padding: 14px 0 14px 16px;
  font-size: 16px;
  color: var(--text-muted);
  user-select: none;
}

.phone-input input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 14px 16px 14px 8px;
  border-radius: 0;
}

.phone-input input:focus {
  box-shadow: none !important;
}

.phone-input input:-webkit-autofill,
.phone-input input:-webkit-autofill:hover,
.phone-input input:-webkit-autofill:focus,
.phone-input input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px rgba(18, 12, 24, 0.95) inset !important;
  box-shadow: 0 0 0 1000px rgba(18, 12, 24, 0.95) inset !important;
  transition: background-color 99999s ease-out 0s;
}

.hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
}

.code-hint {
  margin-top: 8px;
}

.btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-giant), var(--purple-nebula));
  box-shadow: 0 8px 24px rgba(71, 26, 255, 0.35);
}

.btn-primary:not(:disabled):hover {
  box-shadow: 0 12px 32px rgba(71, 26, 255, 0.45);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.alert.error {
  background: rgba(255, 107, 138, 0.15);
  border: 1px solid rgba(255, 107, 138, 0.35);
  color: var(--error);
}

.alert.success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
}

.alert.info {
  background: rgba(71, 26, 255, 0.15);
  border: 1px solid rgba(71, 26, 255, 0.35);
  color: #c4b5fd;
}

.hidden {
  display: none !important;
}

.legal {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}

.legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.legal a:hover {
  color: var(--comet-blue);
}

.sessions-panel {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.sessions-panel h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sessions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sessions-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 13px;
}

.session-phone {
  font-weight: 600;
}

.session-file {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 12px;
}

.session-size {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 20px 20px;
  }

  .landing {
    padding: 20px 16px 36px;
  }

  .landing__title {
    font-size: 1.5rem;
  }

  .page {
    padding-top: 32px;
  }
}
