*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink: #f472b6; --pink-dark: #ec4899; --pink-darker: #db2777;
  --pink-light: #fce7f3; --pink-50: #fdf2f8;
  --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb;
  --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280;
  --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937;
  --gray-900: #111827; --white: #ffffff;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--pink-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Logo */
.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  background: linear-gradient(135deg, #1f2937, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none !important;
}
.logo__vv {
  background: linear-gradient(135deg, #ec4899, #d946ef, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: -0.05em;
}

/* Light variant for dark backgrounds */
.logo--light {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo--light .logo__vv {
  background: linear-gradient(135deg, #f472b6, #e879f9, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Layout ===== */
.au {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ===== Visual Panel ===== */
.au__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  overflow: hidden;
}

.au__visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
}

.au__visual--signup .au__visual-bg {
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
}

.au__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: orbFloat 10s ease-in-out infinite;
}

.au__orb--1 {
  width: 350px;
  height: 350px;
  background: #ec4899;
  top: -10%;
  right: -10%;
}

.au__orb--2 {
  width: 250px;
  height: 250px;
  background: #8b5cf6;
  bottom: 5%;
  left: 5%;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.08); }
}

.au__visual-content {
  position: relative;
  z-index: 1;
}

.au__visual-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.au__visual-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
  line-height: 1.55;
}

.au__visual-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
}

.au__visual-feat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

.au__visual-feat svg { color: #34d399; flex-shrink: 0; }

/* ===== Form Panel ===== */
.au__form-panel {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.au__form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.au__form-logo { display: none; }

.au__form-alt {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-400);
}

.au__form-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.au__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.au__subtitle {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
}

/* Flash */
.au__flash {
  padding: 0.7rem 1rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  color: #991b1b;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  animation: flashIn 0.3s ease;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fields */
.au__form { display: flex; flex-direction: column; gap: 0.25rem; }

.au__field { margin-bottom: 1rem; }

.au__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.4rem;
}

.au__input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}

.au__input-wrap:focus-within {
  border-color: var(--pink-dark);
  box-shadow: 0 0 0 4px var(--pink-light);
}

.au__input-icon {
  margin-left: 0.85rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

.au__input-wrap:focus-within .au__input-icon { color: var(--pink-dark); }

.au__input-wrap input {
  flex: 1;
  border: none;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
}

.au__input-wrap input::placeholder { color: var(--gray-300); }

/* Prefix input */
.au__input-wrap--prefix {
  padding-left: 0;
}

.au__prefix {
  padding: 0.75rem 0 0.75rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
  user-select: none;
}

.au__input-wrap--prefix input {
  padding-left: 0.15rem;
}

.au__hint {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 0.3rem;
}

/* Two-column row */
.au__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

/* Submit */
.au__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(236,72,153,0.25);
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.au__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(236,72,153,0.35);
}

.au__submit:active {
  transform: translateY(0) scale(0.99);
}

/* Footer text */
.au__footer-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 1.75rem;
}

.au__footer-text a {
  font-weight: 600;
  color: var(--pink-dark);
}

/* ===== Centered single-card layout ===== */
.au--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--gray-50);
  padding: 2rem;
}

.au--centered .au__card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  text-align: center;
}

.au--centered .au__title {
  margin-bottom: 0.25rem;
}

.au--centered .au__subtitle {
  margin-bottom: 1.75rem;
}

.au--centered .au__form {
  text-align: left;
}

.au__flash--success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .au {
    grid-template-columns: 1fr;
  }

  .au__visual {
    min-height: 280px;
    padding: 2rem 1.5rem;
  }

  .au__visual-title { font-size: 2.25rem; }
  .au__visual-features { display: none; }

  .au__form-panel {
    padding: 1.75rem 1.25rem;
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 5;
  }

  .au__form-logo { display: inline-flex; }

  .au__title { font-size: 1.5rem; }

  .au__field-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (max-width: 380px) {
  .au__visual { min-height: 220px; padding: 1.5rem 1.25rem; }
  .au__visual-title { font-size: 1.75rem; }
  .au__form-panel { padding: 1.5rem 1rem; }
}
