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

body {
  font-family: 'Manrope', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1623;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: drift 12s ease-in-out infinite alternate;
}
.bg-blob:nth-child(1) {
  width: 500px; height: 500px;
  background: #2563eb;
  top: -120px; left: -100px;
  animation-duration: 14s;
}
.bg-blob:nth-child(2) {
  width: 400px; height: 400px;
  background: #06b6d4;
  bottom: -80px; right: -80px;
  animation-duration: 10s;
  animation-delay: -5s;
}
.bg-blob:nth-child(3) {
  width: 300px; height: 300px;
  background: #7c3aed;
  top: 50%; left: 55%;
  animation-duration: 16s;
  animation-delay: -8s;
  opacity: 0.1;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.08); }
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.brand-icon svg { display: block; }

.brand-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-text { line-height: 1; }

.brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 3px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.login-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

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

.field input:focus {
  border-color: rgba(37, 99, 235, 0.7);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.error {
  font-size: 12px;
  color: #f87171;
  min-height: 18px;
  margin-bottom: 14px;
  text-align: center;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  letter-spacing: 0.3px;
}

.btn-submit:hover {
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
}

.btn-submit:active { transform: none; box-shadow: none; }
.btn-submit:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tg-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60a5fa;
  margin: 0 auto 20px;
}

.card-title { font-size: 18px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 8px; }
.card-sub { font-size: 13px; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.6; margin-bottom: 24px; }

.countdown-wrap {
  position: relative; width: 84px; height: 84px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.countdown-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.countdown-num { font-size: 22px; font-weight: 800; color: #fff; position: relative; z-index: 1; }

.status-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 24px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: #3b82f6;
  animation: blink 1.4s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity:0.2; } 40% { opacity:1; } }

.btn-back {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5);
  border-radius: 10px; padding: 11px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.15s;
}
.btn-back:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; color: rgba(255,255,255,0.15); font-size: 11px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08);
}
