﻿/* ============================================================
   LOGIN & REGISTER — login.css
   Premium purple split-screen · Ilagan Dental Clinic
   ============================================================ */

/* ── Reset & Layout ── */
.login-body {
  min-height: 100vh; height: 100vh; width: 100vw;
  margin: 0; padding: 0;
  display: flex; flex-direction: row; overflow: hidden;
  font-family: var(--font-head);
  background: var(--white);
}
.split {
  flex: 1 1 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  min-width: 0; position: relative;
}

/* ─────────────────────────────────────────
   LEFT — image background + form card
   ───────────────────────────────────────── */
.split.left {
  background: url('../assets/images/smiling-woman-dentist-chair.jpg') center/cover no-repeat;
  padding: 2.5rem 2rem;
  z-index: 2;
}
/* Dark overlay so card is readable */
.split.left::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(46,32,80,.72) 0%,
    rgba(30,21,64,.58) 50%,
    rgba(104,88,160,.45) 100%
  );
  z-index: 0;
}

/* ─────────────────────────────────────────
   RIGHT — purple gradient side
   ───────────────────────────────────────── */
.split.right {
  background: linear-gradient(155deg, #1E1540 0%, #2E2050 25%, #3D2870 55%, var(--purple) 100%);
  padding: 3rem 2rem;
  overflow: hidden; z-index: 1;
}

/* Soft aurora blobs */
.lb-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.lb-blob-1 {
  width: 500px; height: 500px;
  background: rgba(132,112,184,.3);
  top: -120px; left: -100px;
  animation: lbDrift1 10s ease-in-out infinite alternate;
}
.lb-blob-2 {
  width: 400px; height: 400px;
  background: rgba(255,255,255,.06);
  bottom: -80px; right: -60px;
  animation: lbDrift2 12s ease-in-out infinite alternate;
}
.lb-blob-3 {
  width: 280px; height: 280px;
  background: rgba(104,88,160,.25);
  top: 45%; left: 50%;
  animation: lbDrift3 8s ease-in-out infinite alternate;
}
@keyframes lbDrift1 { to { transform: translate(35px, 50px) scale(1.08); } }
@keyframes lbDrift2 { to { transform: translate(-40px,-35px) scale(1.06); } }
@keyframes lbDrift3 { to { transform: translate(-25px, 30px) scale(.92); } }

/* Bottom wave */
.lb-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  line-height: 0; z-index: 0; pointer-events: none;
}
.lb-wave svg { width: 100%; height: 80px; display: block; }

/* ─────────────────────────────────────────
   WELCOME CONTENT (right panel)
   ───────────────────────────────────────── */
.welcome-content {
  max-width: 460px; margin: 0 auto; text-align: center;
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.welcome-logo {
  width: 120px; margin-bottom: 1rem;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.35));
  animation: lbFloat 5s ease-in-out infinite;
}
@keyframes lbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-8px) scale(1.03); }
}
.welcome-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800;
  color: #fff; margin-bottom: .9rem;
  line-height: 1.1; letter-spacing: -.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
  animation: lbUp .7s ease .1s both;
}
.welcome-desc {
  font-size: .93rem; line-height: 1.75;
  color: rgba(255,255,255,.72);
  margin-bottom: 1.5rem; max-width: 370px;
  animation: lbUp .7s ease .2s both;
}

/* Trust pills */
.lb-trust {
  display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 1.4rem;
  animation: lbUp .7s ease .3s both;
}
.lb-trust-pill {
  display: flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50px; padding: .38rem .9rem;
  font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  transition: background .25s, transform .25s;
}
.lb-trust-pill:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
}

/* Brand badge */
.welcome-brand {
  display: flex; align-items: center; gap: .7rem; justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px; padding: .55rem 1.3rem;
  backdrop-filter: blur(8px);
  animation: lbUp .7s ease .4s both;
}
.welcome-logo-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.88);
  display: flex; align-items: center; justify-content: center;
}
.welcome-logo-small { width: 20px; height: 20px; display: block; }
.welcome-brand-text {
  font-size: .88rem; font-weight: 700;
  color: rgba(255,255,255,.88); letter-spacing: .2px;
}

/* ─────────────────────────────────────────
   LOGIN CARD (left panel — glassmorphism over image)
   ───────────────────────────────────────── */
.login-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 22px;
  box-shadow:
    0 4px 24px rgba(0,0,0,.12),
    0 16px 56px rgba(46,32,80,.18);
  padding: 2.6rem 2.3rem 2.2rem;
  width: 100%; max-width: 410px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1;
  animation: lbCard .65s ease both;
}
@keyframes lbCard {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Back link */
.login-card .btn-home {
  position: absolute; top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; color: var(--purple-d);
  padding: .3rem .75rem; border-radius: 50px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(104,88,160,.12);
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.login-card .btn-home:hover {
  background: rgba(255,255,255,.9); color: var(--purple-dd);
  transform: translateX(-2px);
}
.login-card .btn-home .btn-icon { font-size: 1rem; line-height: 1; }

/* Heading */
.login-card h2 {
  font-family: var(--font-head); font-size: 1.85rem; font-weight: 800;
  color: var(--text); margin: 1.6rem 0 1.3rem; letter-spacing: -.3px;
  align-self: flex-start;
  animation: lbUp .55s ease .12s both;
}

/* Form */
.login-card form {
  width: 100%; display: flex; flex-direction: column; gap: .9rem;
}
.input-group {
  position: relative; width: 100%; display: block;
}

.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"] {
  width: 100%; height: 50px;
  padding: 0 1rem; padding-right: 2.8rem;
  border: 1.5px solid rgba(104,88,160,.15);
  border-radius: 13px;
  background: rgba(255,255,255,.8);
  font-family: var(--font-head); font-size: .94rem; color: var(--text);
  outline: none;
  box-sizing: border-box; display: block;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-card input:focus {
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(104,88,160,.14);
}
.login-card input::placeholder { color: #9a93b2; }

/* Stagger inputs */
.input-group:nth-child(1) { animation: lbUp .5s ease .2s both; }
.input-group:nth-child(2) { animation: lbUp .5s ease .28s both; }
.input-group:nth-child(3) { animation: lbUp .5s ease .34s both; }

/* Eye toggle */
.toggle-password {
  position: absolute; top: 50%; right: .85rem;
  transform: translateY(-50%); cursor: pointer;
  color: #a099b8; z-index: 5;
  transition: color .2s;
}
.toggle-password:hover { color: var(--purple); }
.toggle-password svg path,
.toggle-password svg circle { stroke: currentColor; }

/* Forgot */
.forgot-link {
  display: block; margin: -.15rem 0 .15rem auto;
  font-size: .82rem; font-weight: 600;
  color: var(--purple); text-decoration: none;
  transition: color .2s;
  animation: lbUp .5s ease .36s both;
}
.forgot-link:hover { color: var(--purple-d); text-decoration: underline; }

/* Submit */
.login-btn {
  width: 100%; padding: .9rem 0;
  background: linear-gradient(135deg, var(--purple-m), var(--purple-d));
  color: #fff;
  font-family: var(--font-head); font-size: .98rem; font-weight: 700;
  border: none; border-radius: 13px;
  box-shadow: 0 4px 18px rgba(104,88,160,.35);
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s;
  animation: lbUp .5s ease .42s both;
}
.login-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.14) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform .55s ease;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(104,88,160,.45);
}
.login-btn:hover::after { transform: translateX(100%); }

/* Link below form */
.register-link {
  margin-top: 1.1rem; font-size: .88rem; font-weight: 600;
  color: var(--purple); text-align: center; display: block;
  text-decoration: none;
  animation: lbUp .5s ease .48s both;
}
.register-link:hover { color: var(--purple-d); text-decoration: underline; }

/* Alert */
.alert {
  width: 100%; margin-bottom: .65rem; padding: .75rem 1rem;
  border-radius: 10px; font-size: .86rem; color: #991b1b;
  background: #fef2f2; border: 1.5px solid #fca5a5;
}

/* Register steps */
.steps-wrap {
  position: relative; width: 100%;
  overflow: hidden;
  transition: height .3s ease;
}
.step { width: 100%; display: none; flex-direction: column; gap: .9rem; }
.step.active { display: flex; }

/* Shared keyframe */
@keyframes lbUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 900px) {
  .split.right { display: none; }
  .split.left {
    flex: 0 0 100%; width: 100%;
    padding: 2rem;
  }
  .login-card {
    background: rgba(255,255,255,.95);
    box-shadow: 0 16px 50px rgba(0,0,0,.25);
  }
}
@media (max-width: 480px) {
  .login-card { padding: 2rem 1.3rem 1.8rem; border-radius: 18px; }
  .login-card h2 { font-size: 1.55rem; }
}
