/* custom.css – Premium design system */
:root {
  --primary: #6366f1; /* indigo-500 */
  --secondary: #fbbf24; /* amber-400 */
  --accent: #c084fc; /* violet-400 */
  --bg-dark: #0d0d0d;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-muted: #aaaaaa;
}

/* Global background gradient */
body.bg-gradient {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

/* Animated background gradient */
body.bg-gradient {
  background: linear-gradient(-45deg, #1a1a2e, #16213e, #283593, #212121);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Button glow on hover */
.btn-primary:hover {
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

.container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

/* Glassmorphism panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  padding: 30px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.glass-panel.lift-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel.lift-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.title {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.75rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

/* Loader spinner */
.loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-left: 8px;
}
.loader.hidden { display: none; }


.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, var(--primary));
}

.btn-block {
  width: 100%;
}

.link-primary {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.link-primary:hover {
  text-decoration: underline;
}

.error-msg {
  color: #f87171; /* red-400 */
  margin-bottom: 12px;
  font-size: 0.85rem;
  display: none;
}

.signup-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.quick-login .section-title {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.quick-option {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 8px;
}
.quick-option:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Staggered animation for quick‑login options */
[data-index] {
  transition-delay: calc(var(--anim-index) * 0.1s);
}
/* Specific delays for quick options */
.quick-option[data-index="1"] { transition-delay: 0.1s; }
.quick-option[data-index="2"] { transition-delay: 0.2s; }
.quick-option[data-index="3"] { transition-delay: 0.3s; }

.quick-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.quick-info .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-info .role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.arrow {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
}

/* Generic data‑anim utilities (kept for other sections) */
[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-anim].animate {
  opacity: 1;
  transform: translateY(0);
}

/* Fade‑up shortcut (can be used elsewhere) */
.fade-up { }

