/* ─────────────────────────────────────────────────────────────
   VidyaForce — Auth Page Styles (login.html)
   Powered by Satavahana LLC
   ───────────────────────────────────────────────────────────── */

body { min-height: 100vh; display: flex; flex-direction: column; }

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30,143,255,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 90%, rgba(201,168,76,0.08) 0%, transparent 60%),
    #162540;
  position: relative;
  overflow: hidden;
}
.auth-main::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,143,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,143,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Card ────────────────────────────────────────────────────── */
.auth-card {
  position: relative;
  background: #1E3155;
  border: 1px solid #2A4470;
  border-radius: 24px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(30,143,255,0.12);
  animation: authFadeUp 0.45s ease forwards;
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Top gradient line */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #1E8FFF, #C9A84C, #1E8FFF, transparent);
  border-radius: 24px 24px 0 0;
}

/* ── Logo ────────────────────────────────────────────────────── */
.auth-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 22px;
}
.auth-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #00c853, #00e676);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: #fff;
  box-shadow: 0 0 14px rgba(0,200,83,0.4);
}
.auth-logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: #F0F4FF;
  letter-spacing: -0.01em;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F0F4FF;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 0.88rem;
  color: rgba(240,244,255,0.65);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 28px;
}

/* ── Social buttons ──────────────────────────────────────────── */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 20px;
  background: #243d6a;
  border: 1px solid #2f5090;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #F0F4FF;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.social-btn:hover {
  background: rgba(30,143,255,0.2);
  border-color: rgba(30,143,255,0.5);
  transform: translateY(-1px);
}
.social-btn:active { transform: translateY(0); }

.social-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.social-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
}

/* ── Divider ─────────────────────────────────────────────────── */
.auth-divider {
  font-size: 0.75rem;
  color: rgba(240,244,255,0.4);
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 0 8px;
}

/* ── Back link ───────────────────────────────────────────────── */
.auth-back {
  display: block;
  font-size: 0.75rem;
  color: rgba(240,244,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.auth-back:hover { color: rgba(240,244,255,0.7); }

/* ── Error message ───────────────────────────────────────────── */
.auth-error {
  display: none;
  background: rgba(255,69,58,0.1);
  border: 1px solid rgba(255,69,58,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #ff6b6b;
  margin-bottom: 16px;
  text-align: left;
}
.auth-error.show { display: block; }
