/* Modern Auth Form Styles - Separate File */
/* Base reset for the auth page only */
html, body {
  height: 100%;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0b1226;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(14,165,233,0.20) 0, transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(34,197,94,0.18) 0, transparent 35%),
              linear-gradient(120deg, #0b1226, #0f172a 40%, #0b1226);
  background-size: 160% 160%;
  animation: authBgFlow 18s ease-in-out infinite alternate;
}

.auth-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 320px;
  background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 50%),
              radial-gradient(circle, rgba(16,185,129,0.22), transparent 45%);
  filter: blur(60px);
  opacity: 0.9;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.auth-card {
  max-width: 420px;
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.95));
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.18), 0 8px 20px rgba(37,99,235,0.14);
  padding: 36px 32px 32px 32px;
  position: relative;
  border: 1px solid rgba(226,232,240,0.8);
  overflow: hidden;
}
.auth-card::before{
  content:"";
  position:absolute;
  inset: -40% -20% auto -20%;
  height:120px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(16,185,129,0.08), rgba(14,165,233,0.14));
  filter: blur(40px);
  opacity:0.9;
  pointer-events:none;
}

.auth-title {
  color: #0f172a;
  margin: 0 0 18px 0;
  font-size: 2rem;
  letter-spacing: 0.2px;
  font-weight: 800;
  text-align: left;
}

.lang-anim .auth-card{
  animation: langPulse 260ms ease;
}

@keyframes langPulse{
  0%{ opacity:1; transform:scale(1); }
  50%{ opacity:0.75; transform:scale(0.985); }
  100%{ opacity:1; transform:scale(1); }
}

.auth-sub {
  margin: 0 0 22px 0;
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  width: 100%; 
}
.auth-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f2fe, #eef2ff);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(191, 219, 254, 0.8);
}
.auth-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.auth-lang button {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.18s ease;
  height: 38px;
}
.auth-lang button:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group { width: 92%; }

.auth-input {
  width: 100% !important;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  font-size: 1.02rem;
  background: #fff;
  transition: box-shadow 0.18s, border 0.18s, transform 0.12s;
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.05);
}
.auth-input:focus {
  outline: none;
  border: 1.5px solid #3b82f6;
  box-shadow: 0 4px 14px rgba(59,130,246,0.2);
  transform: translateY(-1px);
}
.auth-input:focus-visible {
  outline: 3px solid rgba(59,130,246,0.35);
  outline-offset: 2px;
}

.auth-btn {
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.22);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.auth-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15,23,42,0.28);
}
.auth-btn:active {
  transform: scale(0.98);
}
.auth-btn:focus-visible {
  outline: 3px solid rgba(37,99,235,0.35);
  outline-offset: 3px;
}

.auth-links {
  text-align: center;
  margin-top: 14px;
  font-size: 0.98rem;
}
.auth-links a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border 0.18s;
}
.auth-links a:hover {
  color: #2563eb;
  border-color: rgba(37,99,235,0.35);
}
.auth-links a:focus-visible {
  outline: 2px dashed rgba(37,99,235,0.6);
  outline-offset: 3px;
}

.auth-section {
  margin-top: 28px;
}

/* Small screens */
@media (max-width: 480px) {
  .auth-card {
    border-radius: 18px;
    padding: 26px 20px;
    margin: 12px;
  }
  .auth-title { font-size: 1.65rem; }
  .auth-btn { font-size: 0.98rem; padding: 12px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .auth-container,
  .auth-card,
  .auth-title,
  .auth-form,
  .auth-section,
  .auth-glow {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes floatGlow {
  0% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(12px); opacity: 0.75; }
  100% { transform: translateY(-10px); opacity: 0.9; }
}

@keyframes authBgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 60% 70%; }
  100% { background-position: 100% 50%; }
}



