/* ============================================================
   auth-pages.css — Shared styles for login.html & register.html
   ============================================================ */

.auth-body {
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Animated orb background */
.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.auth-orb-1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, #7c3aed, #4f46e5);
  animation: drift 12s ease-in-out infinite alternate;
}
.auth-orb-2 {
  width: 400px; height: 400px;
  bottom: -80px; left: -80px;
  background: radial-gradient(circle, #2563eb, #0ea5e9);
  animation: drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 30px) scale(1.08); }
}

/* Split Layout */
.auth-split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 10;
}

.auth-form-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

.auth-form-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-visual-side {
  width: 50%;
  background-color: #0a0a0a;
  border-left: 3px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Manga Aesthetic CSS Collage Panel */
.manga-collage {
  width: 85%;
  max-width: 460px;
  height: 560px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 1.4fr 1.1fr 1fr;
  gap: 1.25rem;
  position: relative;
}

.collage-panel-wrapper {
  position: relative;
  filter: drop-shadow(6px 6px 0px #000000);
}

.collage-panel-clipper {
  width: 100%;
  height: 100%;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.collage-panel-content {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  background-color: #0d0d0d;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-panel-wrapper.panel-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  transform: rotate(-3.5deg);
  z-index: 2;
}
.collage-panel-wrapper.panel-1 .collage-panel-clipper {
  /* Jagged right edge */
  clip-path: polygon(0% 0%, 93% 0%, 82% 45%, 96% 100%, 0% 100%);
}

.collage-panel-wrapper.panel-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  transform: rotate(5.5deg);
  z-index: 1;
}
.collage-panel-wrapper.panel-2 .collage-panel-clipper {
  clip-path: polygon(5% 0%, 100% 8%, 95% 100%, 0% 92%);
}
.collage-panel-wrapper.panel-2 .collage-panel-content {
  background: repeating-linear-gradient(45deg, #151515, #151515 4px, #000 4px, #000 8px);
}

.collage-panel-wrapper.panel-3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  transform: rotate(-6deg);
  z-index: 3;
}
.collage-panel-wrapper.panel-3 .collage-panel-clipper {
  /* Jagged left edge */
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 15% 100%, 5% 50%);
  background-color: #8b5cf6; /* Purple border rim */
}
.collage-panel-wrapper.panel-3 .collage-panel-content {
  background: repeating-linear-gradient(-45deg, #8b5cf6, #8b5cf6 2px, #0a0a0a 2px, #0a0a0a 15px);
}

.collage-panel-wrapper.panel-4 {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  transform: rotate(2deg);
  z-index: 2;
}
.collage-panel-wrapper.panel-4 .collage-panel-clipper {
  /* Jagged top edge */
  clip-path: polygon(0% 15%, 40% 0%, 60% 20%, 100% 5%, 100% 100%, 0% 100%);
}
.collage-panel-wrapper.panel-4 .collage-panel-content {
  background-color: #111;
  background-image: linear-gradient(135deg, #e8324a 50%, #0a0a0a 50%);
}

/* Background image for panels */
.panel-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.5) contrast(1.15) brightness(0.85);
}

.panel-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
}

/* Ink Splatter Overlay */
.collage-ink-splatter {
  position: absolute;
  top: 40%;
  left: 65%;
  transform: translate(-50%, -50%) rotate(12deg);
  width: 140px;
  height: 140px;
  z-index: 15;
  pointer-events: none;
  filter: drop-shadow(4px 4px 0 #000);
}

.collage-caption {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  transform: rotate(-4deg);
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: #000;
  border: 2px solid #fff;
  box-shadow: 4px 4px 0 #e8324a;
  z-index: 10;
}

.collage-caption.speed {
  font-size: 3.2rem;
  animation: pulse-glow-auth 1.5s infinite alternate;
}

.collage-caption.highlight {
  box-shadow: 4px 4px 0 #8b5cf6; /* Muted purple shadow */
  border-color: #8b5cf6;
}

.collage-caption.text-bubble {
  box-shadow: 4px 4px 0 #e8324a;
  border-color: #e8324a;
}

@keyframes pulse-glow-auth {
  0% { transform: scale(1) rotate(-4deg); }
  100% { transform: scale(1.06) rotate(-2deg); }
}

.collage-speech-bubble {
  background: #fff;
  border: 3px solid #000;
  border-radius: 50% 50% 50% 10%;
  padding: 1.25rem 1rem;
  max-width: 85%;
  position: relative;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(3deg);
  z-index: 10;
}

.collage-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 20%;
  border-width: 15px 15px 0 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  display: block;
  width: 0;
}

.collage-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 18%;
  border-width: 17px 17px 0 0;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
  display: block;
  width: 0;
  z-index: -1;
}

.bubble-text {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  color: #000;
  text-align: center;
  line-height: 1.2;
}

/* Nav */
.auth-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
}
.auth-nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}
.auth-nav-logo span { color: var(--accent-color); }
.auth-nav-link {
  color: var(--accent-color) !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s;
}
.auth-nav-link:hover { text-decoration: underline; }

/* Main layout */
.auth-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--glass-bg) !important;
  border: 3px solid #000000 !important;
  box-shadow: 6px 6px 0px #000000 !important;
  border-radius: 0px !important;
  backdrop-filter: none !important;
  box-sizing: border-box;
}
.auth-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.auth-subtitle {
  color: #94a3b8 !important;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Form */
.auth-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8 !important;
}
.label-hint {
  font-weight: 400;
  color: #94a3b8 !important;
}
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #000000;
  border: 3px solid #000000 !important;
  border-radius: 0px !important;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  box-shadow: 4px 4px 0px #000000 !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent-color) !important;
  box-shadow: 6px 6px 0px var(--accent-color) !important;
}


.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-wrap input {
  padding-right: 3rem;
}
.toggle-pw {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  opacity: 0.75;
  transition: opacity 0.2s;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  height: 24px;
  width: 24px;
}
.toggle-pw:hover { opacity: 1; }


/* Password strength bar */
.pw-strength {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  margin-top: 0.4rem;
  overflow: hidden;
}
.pw-bar {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}
.pw-strength-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.2rem;
}

/* Error / success */
.auth-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  text-align: center;
}
.auth-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
  color: #86efac;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  text-align: center;
}

/* Submit button */
.auth-submit {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

/* Google OAuth button + divider */
.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #1f1f1f;
  border: 2px solid #000;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.oauth-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}
.oauth-btn svg { flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border, rgba(255,255,255,0.12));
}
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Footer links */
.auth-switch {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.auth-switch a { color: var(--accent-color); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-terms {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #94a3b8;
}
.auth-terms a { color: var(--accent-color); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

/* Feature pills */
.auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.feature-icon { font-size: 1rem; }

@media (max-width: 1023px) {
  .auth-form-side {
    width: 100% !important;
  }
  .auth-visual-side {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .auth-card { padding: 2rem 1.25rem; }
}
