: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);
  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);
}

.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%;
  max-width: 420px;
  padding: 40px 36px 32px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  box-shadow:
    0 24px 80px rgba(71, 26, 255, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.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: 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;
}

.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 {
  border: none;
  background: transparent;
  box-shadow: none;
  padding-left: 8px;
}

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

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

.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: 32px 24px 24px;
  }

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