/* =====================================================
   AUTH PAGE STYLES — PREMIUM v2
   ===================================================== */

body.auth-page {
  min-height: 100vh;
  min-width: 100vw;
  overflow-x: hidden;
}

/* Animated Background */
.bg-canvas {
  position:fixed; inset:0; z-index:0;
  background:linear-gradient(145deg, #080f0a 0%, #0f2318 35%, #1a3c28 70%, #0a1c10 100%);
}
.bg-orb {
  position:absolute; border-radius:50%;
  filter:blur(90px); opacity:0.5;
  animation:float 14s ease-in-out infinite;
}
.orb-1 { width:520px; height:520px; background:#1e4d35; top:-120px; left:-80px; animation-delay:0s; }
.orb-2 { width:400px; height:400px; background:#c9a84c; bottom:-80px; right:-60px; animation-delay:-5s; opacity:0.18; }
.orb-3 { width:320px; height:320px; background:#2e7a56; top:45%; left:45%; transform:translate(-50%,-50%); animation-delay:-10s; opacity:0.28; }
.bg-pattern {
  position:absolute; inset:0;
  background-image:radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:30px 30px;
}

/* AMU Faint background image overlay */
.bg-amu-watermark {
  position:absolute; inset:0; z-index:0;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Aligarh_Muslim_University_Coat_of_Arms.svg/512px-Aligarh_Muslim_University_Coat_of_Arms.svg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 420px 420px;
  opacity: 0.04;
  pointer-events: none;
}

@keyframes float {
  0%,100% { transform:translateY(0) scale(1); }
  50%      { transform:translateY(-28px) scale(1.06); }
}

/* Auth Wrapper — vertical tabs on top */
.auth-wrapper {
  position:relative; z-index:1;
  min-height:100vh;
  min-width:100vw;
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

/* Left Panel */
.auth-left {
  display:flex; flex-direction:column; justify-content:space-between;
  padding:48px; color:white;
  min-height: 100vh;
}
.auth-brand { display:flex; align-items:center; gap:16px; }
.brand-emblem { width:52px; height:52px; color:var(--gold-light); }
.brand-emblem svg { width:100%; height:100%; }
.brand-text h1 { font-size:18px; font-family:var(--font-heading); color:white; }
.brand-text span { font-size:11px; color:rgba(255,255,255,0.45); font-weight:400; }

.auth-hero { flex:1; display:flex; flex-direction:column; justify-content:center; padding:60px 0 40px; }
.auth-hero h2 {
  font-size:clamp(28px,3.2vw,50px);
  font-family:var(--font-display); font-weight:300;
  line-height:1.12; color:white; margin-bottom:18px;
}
.auth-hero h2 em { font-style:italic; color:var(--gold-light); }
.auth-hero p { font-size:15px; color:rgba(255,255,255,0.6); line-height:1.75; max-width:390px; margin-bottom:38px; }

.auth-stats { display:flex; gap:36px; }
.auth-stat { display:flex; flex-direction:column; gap:4px; }
.stat-num   { font-size:26px; font-family:var(--font-heading); color:var(--gold-light); line-height:1; }
.stat-label { font-size:11px; color:rgba(255,255,255,0.45); text-transform:uppercase; letter-spacing:0.6px; }

.auth-testimonial { padding-top:28px; border-top:1px solid rgba(255,255,255,0.10); }
.auth-testimonial blockquote {
  font-family:var(--font-display); font-style:italic;
  font-size:15px; color:rgba(255,255,255,0.65); line-height:1.65; margin-bottom:8px;
}
.auth-testimonial cite { font-size:11px; color:rgba(255,255,255,0.38); }

/* Right Panel */
.auth-right {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:var(--ivory); padding:36px 44px;
  overflow-y:auto; min-height:100vh;
}
.auth-card {
  width:100%; max-width:440px; background:white; border-radius:var(--r-xl);
  box-shadow:var(--shadow-lg); overflow:hidden; border:1px solid var(--border);
}

/* Tabs — Vertical style on top */
.auth-tabs {
  display:grid; grid-template-columns:1fr 1fr;
  background:var(--ivory-dark);
  border-bottom: 2px solid var(--border);
}
.auth-tab {
  padding:17px; border:none; background:transparent;
  font-family:var(--font-body); font-size:13.5px; font-weight:600;
  color:var(--muted); cursor:pointer; transition:all 0.2s;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.auth-tab.active {
  background:white; color:var(--forest);
  box-shadow:inset 0 -3px 0 var(--forest-mid);
}
.auth-form-wrap { padding:26px 30px; }
.auth-form-header { margin-bottom:22px; }
.auth-form-header h3 { font-size:22px; color:var(--ink); margin-bottom:4px; }
.auth-form-header p  { font-size:13.5px; color:var(--muted); }

.field-group { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.field-group label { font-size:12.5px; font-weight:600; color:var(--ink); }
.field-wrap { position:relative; display:flex; align-items:center; }
.field-wrap > i { position:absolute; left:13px; color:var(--subtle); font-size:13px; z-index:1; }
.field-wrap input {
  width:100%; padding:11px 13px 11px 40px;
  border:2px solid var(--border); border-radius:var(--r-sm);
  font-size:14px; font-family:var(--font-body);
  background:var(--ivory); color:var(--ink); transition:all 0.2s;
}
.field-wrap input:focus {
  outline:none; border-color:var(--forest-light); background:white;
  box-shadow:0 0 0 4px rgba(46,122,86,0.10);
}
.toggle-pwd {
  position:absolute; right:13px; background:none; border:none;
  cursor:pointer; color:var(--subtle); font-size:13px; padding:4px;
}
.toggle-pwd:hover { color:var(--ink); }

.field-extras {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:18px;
}
.checkbox-label {
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--muted); cursor:pointer;
}
.checkbox-label input[type="checkbox"] { width:15px; height:15px; accent-color:var(--forest-mid); cursor:pointer; }
.forgot-link { font-size:13px; color:var(--forest-mid); font-weight:500; }
.forgot-link:hover { text-decoration:underline; }
.terms-label { margin-bottom:18px; align-items:flex-start; }
.terms-label a { color:var(--forest-mid); text-decoration:underline; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

.btn-auth {
  width:100%; padding:13px;
  background:linear-gradient(135deg, var(--forest-mid), var(--forest-light));
  color:white; border:none; border-radius:var(--r-sm);
  font-family:var(--font-body); font-size:14.5px; font-weight:600;
  cursor:pointer; transition:all 0.2s;
  display:flex; align-items:center; justify-content:center; gap:10px;
}
.btn-auth:hover { transform:translateY(-2px); box-shadow:var(--shadow-forest); }
.btn-auth:disabled { opacity:0.6; transform:none; cursor:not-allowed; }

.auth-divider {
  display:flex; align-items:center; gap:12px;
  margin:18px 0; color:var(--subtle); font-size:12px;
}
.auth-divider::before,.auth-divider::after {
  content:''; flex:1; height:1px; background:var(--border);
}

.btn-google {
  width:100%; padding:11px; background:white; color:var(--ink);
  border:2px solid var(--border); border-radius:var(--r-sm);
  font-family:var(--font-body); font-size:13.5px; font-weight:500;
  cursor:pointer; transition:all 0.2s;
  display:flex; align-items:center; justify-content:center; gap:10px;
}
.btn-google:hover { border-color:var(--border-dark); background:var(--ivory-dark); }

.password-strength { display:flex; gap:4px; margin-top:6px; }
.pwd-bar { flex:1; height:4px; border-radius:2px; background:var(--border); transition:background 0.3s; }
.pwd-bar.weak   { background:var(--danger); }
.pwd-bar.fair   { background:var(--warning); }
.pwd-bar.strong { background:var(--success); }

.auth-footer-note {
  margin-top:18px; font-size:12px; color:rgba(255,255,255,0.4);
  text-align:center; max-width:440px; line-height:1.6;
}

/* Responsive */
@media (max-width:900px) {
  .auth-wrapper { grid-template-columns:1fr; min-height:100vh; }
  .auth-left    { display:none; }
  .auth-right   {
    padding:36px 20px;
    min-height:100vh;
    background:linear-gradient(145deg, #080f0a 0%, #0f2318 35%, #1a3c28 70%, #0a1c10 100%);
    justify-content: flex-start;
    padding-top: 60px;
  }
  body.auth-page { overflow:auto; }
  .auth-card    { background:rgba(255,255,255,0.98); }
  .auth-footer-note { color: rgba(255,255,255,0.4); }
}
@media (max-width:480px) {
  .auth-right   { padding:20px 14px; padding-top:40px; }
  .auth-form-wrap { padding:22px 18px; }
  .form-row     { grid-template-columns:1fr; }
}
