/* ==========================================================================
   Aarya Academy — Sign-in (v3)
   Light lavender page, floating decorative circles, and one rounded card
   split in two: a white form panel and a violet gradient identity panel
   where "Aarya Academy" (with a cap mark) stands in for a photo.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --violet-700: #5b4fd6;
  --violet-600: #6a5cf0;
  --violet-500: #8577f5;
  --violet-100: #ece9fd;
  --lavender-50: #eeecfb;
  --paper-0: #ffffff;
  --field-bg: #f4f3fb;
  --ink-900: #262247;
  --ink-600: #6b6790;
  --slate-400: #a09cc2;
  --line-200: #e6e3f7;
  --error-600: #c0392b;
  --error-50: #fbeeeb;

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html body {
  margin: 0;
  font-family: var(--font-body) !important;
  color: var(--ink-900);
  background: var(--lavender-50);
  position: relative;
  overflow-x: hidden;
}

/* floating decorative circles, independent of markup */
html body::before,
html body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

html body::before {
  top: -70px;
  left: -70px;
  width: 220px;
  height: 220px;
  background: linear-gradient(160deg, var(--violet-600), var(--violet-500));
  opacity: 0.9;
}

html body::after {
  bottom: -90px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: var(--paper-0);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.5);
}

/* ---------- Page shell: centers one rounded split card ---------- */

html body .auth-page {
  min-height: 100vh;
  display: flex !important;
  flex-direction: row-reverse;
  align-items: stretch;
  justify-content: center;
  width: min(920px, 92vw);
  margin: 40px auto;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper-0);
  box-shadow: 0 30px 70px -25px rgba(91, 79, 214, 0.35);
  position: relative;
  z-index: 1;
}

/* ---------- Right panel: violet identity panel (was the photo) ---------- */

.auth-page .auth-brand {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1 1 46%;
  padding: 48px;
  margin: 12px;
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(360px 280px at 20% 15%, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(320px 260px at 85% 85%, rgba(255, 255, 255, 0.10), transparent 55%),
    linear-gradient(155deg, var(--violet-600) 0%, var(--violet-700) 100%) !important;
  color: #fff;
}

.auth-brand::before {
  content: '\1F393';
  font-size: 52px;
  line-height: 1;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 4px;
}

.auth-brand::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  bottom: -110px;
  right: -80px;
}

.auth-brand-logo { display: none; }

.auth-brand h1 {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem) !important;
  line-height: 1.25;
  color: #fff !important;
  max-width: 12ch;
}

/* ---------- Left panel: the actual sign-in form ---------- */

.auth-page .auth-card {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  flex: 1 1 54%;
  padding: 56px 52px;
  background: var(--paper-0) !important;
}

.auth-card .auth-heading h2 {
  margin: 0 0 6px !important;
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: 1.7rem !important;
  letter-spacing: 0.3px;
  color: var(--ink-900) !important;
}

.auth-card .auth-heading p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.92rem;
}

.auth-card form { display: flex !important; flex-direction: column; gap: 20px; }

.auth-field { display: flex; flex-direction: column; gap: 8px; }

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-900);
}

.auth-input-wrapper {
  position: relative;
  display: flex !important;
  align-items: center;
  border: 1.5px solid transparent !important;
  border-radius: 12px;
  background: var(--field-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input-wrapper:focus-within {
  border-color: var(--violet-500) !important;
  box-shadow: 0 0 0 4px var(--violet-100);
  background: var(--paper-0);
}

.auth-input-wrapper i {
  padding-left: 16px;
  color: var(--violet-600);
  font-size: 0.95rem;
}

.auth-input-wrapper input {
  flex: 1;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  padding: 14px 16px !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem;
  color: var(--ink-900);
  outline: none;
  box-shadow: none !important;
  margin: 0 !important;
  height: auto !important;
}

.auth-input-wrapper input::placeholder { color: var(--slate-400); }

.auth-password-toggle {
  border: 0;
  background: transparent;
  padding: 0 16px;
  color: var(--slate-400);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.auth-password-toggle:hover { color: var(--violet-600); }

.auth-error {
  font-size: 0.8rem;
  color: var(--error-600);
  background: var(--error-50);
  border-radius: 8px;
  padding: 7px 11px;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-600);
  cursor: pointer;
}

.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--violet-600);
}

.auth-options a {
  color: var(--violet-600);
  text-decoration: none;
  font-weight: 600;
}

.auth-options a:hover { text-decoration: underline; }

button.auth-submit {
  display: block;
  width: 100%;
  border: 0 !important;
  border-radius: 12px;
  padding: 14px !important;
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700)) !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 12px 24px -10px rgba(91, 79, 214, 0.55) !important;
}

button.auth-submit:hover { transform: translateY(-1px); }
button.auth-submit:active { transform: translateY(0); }

.auth-submit:focus-visible,
.auth-input-wrapper input:focus-visible,


.auth-footer {
  font-size: 0.78rem;
  color: var(--slate-400);
  text-align: left;
}

/* ---------- Mobile: stack the two panels ---------- */

@media (max-width: 780px) {
  html body::before, html body::after { display: none; }

  html body .auth-page {
    flex-direction: column-reverse;
    width: 92vw;
    margin: 24px auto;
    border-radius: 22px;
  }

  .auth-page .auth-brand {
    margin: 12px 12px 0;
    padding: 34px 24px;
    gap: 12px;
  }

  .auth-brand::before { width: 72px; height: 72px; font-size: 38px; }
  .auth-brand h1 { font-size: 1.4rem !important; }

  .auth-page .auth-card { padding: 36px 26px 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-input-wrapper, button.auth-submit { transition: none !important; }
}
