/* === Global === */
:root {
  --primary: #06b6d4;
  --secondary: #7c3aed;
  --bg: #0f172a;
  --card-bg: rgba(255,255,255,0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --radius: 12px;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === Center Pages (Login/Register/OTP) === */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  background: var(--card-bg);
  padding: 32px 40px;
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  text-align: center;
  width: 350px;
  max-width: 90%;
  animation: fadeUp 0.6s ease;
}

.card h1, .card h2 {
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--primary);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.card p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}

/* === Inputs === */
.card input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: var(--radius);
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 15px;
  transition: 0.3s;
}

.card input:focus {
  background: rgba(255,255,255,0.18);
  border: 1px solid var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* === Buttons === */
.card button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.card button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

/* === Links === */
.card a {
  color: var(--secondary);
  font-weight: 500;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* === Brand Buttons === */
.brand-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.brand-list button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: 0.3s;
}

.brand-list button:hover {
  background: var(--primary);
  color: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* === Animations === */
@keyframes fadeUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === Responsive === */
@media (max-width: 500px) {
  .card {
    padding: 24px;
  }
  .card h1, .card h2 {
    font-size: 20px;
  }
}
