/* =====================================================================
   SG TECH PRO — AUTH PAGES — PREMIUM v3.0
   Split-screen | Glassmorphism | Deep Purple | Maximum Impact
   ===================================================================== */

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

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: 'Inter', 'Outfit', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════
   LEFT PANEL — Brand / Hero
   ═══════════════════════════════════════════════════════════════════ */
.auth-panel-left {
  background: linear-gradient(145deg, #0d0720 0%, #1a0a3a 40%, #2d1060 70%, #0d0720 100%);
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start;
  padding: 48px 52px;
  position: relative; overflow: hidden;
}

/* Orb animations */
.auth-panel-left::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.5) 0%, transparent 70%);
  animation: orbFloat 6s ease-in-out infinite;
}
.auth-panel-left::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,.35) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(20px,-20px) scale(1.06); }
}

/* Grid decoration */
.auth-panel-left .auth-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Logo */
.auth-brand { position: relative; z-index: 2; }
.auth-brand-logo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 64px;
}
.auth-brand-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #6d28d9, #a855f7, #ec4899);
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 900;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 8px 30px rgba(139,92,246,.6),
              0 0 60px rgba(139,92,246,.3);
  position: relative; overflow: hidden;
}
.auth-brand-icon::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);
  transform: skewX(-20deg);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer { to { left: 150%; } }

.auth-brand-name {
  font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 900;
  color: #fff; letter-spacing: -.5px;
  display: block;
}
.auth-brand-sub {
  font-size: 11px; color: rgba(196,181,253,.6);
  text-transform: uppercase; letter-spacing: 2px; display: block;
}

/* Headline */
.auth-panel-headline {
  position: relative; z-index: 2;
}
.auth-panel-headline h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 42px; font-weight: 900; line-height: 1.15;
  color: #fff; margin-bottom: 18px; letter-spacing: -1px;
}
.auth-panel-headline h2 span {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-panel-headline p {
  font-size: 16px; color: rgba(196,181,253,.7);
  line-height: 1.7; max-width: 340px;
}

/* Feature list */
.auth-features {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 16px;
}
.auth-feature-item {
  display: flex; align-items: center; gap: 14px;
}
.auth-feature-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(139,92,246,.2);
  border: 1px solid rgba(139,92,246,.3);
  display: flex; align-items: center; justify-content: center;
  color: #a78bfa; font-size: 16px; flex-shrink: 0;
}
.auth-feature-text strong {
  display: block; color: #fff; font-size: 14px; font-weight: 700;
  margin-bottom: 2px;
}
.auth-feature-text span { font-size: 13px; color: rgba(196,181,253,.6); }

/* ═══════════════════════════════════════════════════════════════════
   RIGHT PANEL — Form
   ═══════════════════════════════════════════════════════════════════ */
.auth-panel-right {
  background: #faf9ff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 52px;
  position: relative; overflow: hidden;
}
.auth-panel-right::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,.06) 0%, transparent 70%);
}
.auth-panel-right::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,.05) 0%, transparent 70%);
}

.auth-form-wrap {
  width: 100%; max-width: 440px;
  position: relative; z-index: 1;
}

/* ── Form Header ── */
.auth-header {
  margin-bottom: 36px;
}
.auth-header .auth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,rgba(109,40,217,.12),rgba(139,92,246,.08));
  border: 1px solid rgba(109,40,217,.2);
  color: #6d28d9; font-size: 12px; font-weight: 800;
  padding: 6px 14px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.auth-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px; font-weight: 900; color: #1a1033;
  letter-spacing: -.7px; margin-bottom: 10px;
}
.auth-header p {
  font-size: 15px; color: #6b7280; line-height: 1.6;
}

/* ── Alerts ── */
.auth-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 13px;
  font-size: 14px; font-weight: 600;
  margin-bottom: 24px;
  animation: authSlide .3s cubic-bezier(.4,0,.2,1);
}
.auth-alert i { font-size: 17px; flex-shrink: 0; }
.auth-alert--error {
  background: linear-gradient(135deg,rgba(239,68,68,.1),rgba(252,165,165,.06));
  color: #991b1b; border: 1.5px solid rgba(239,68,68,.3);
  box-shadow: 0 4px 16px rgba(239,68,68,.1);
}
.auth-alert--success {
  background: linear-gradient(135deg,rgba(16,185,129,.1),rgba(52,211,153,.06));
  color: #065f46; border: 1.5px solid rgba(16,185,129,.3);
  box-shadow: 0 4px 16px rgba(16,185,129,.1);
}
.auth-alert--info {
  background: linear-gradient(135deg,rgba(37,99,235,.1),rgba(96,165,250,.06));
  color: #1e40af; border: 1.5px solid rgba(37,99,235,.25);
  box-shadow: 0 4px 16px rgba(37,99,235,.1);
}
@keyframes authSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Form ── */
.auth-form { display: flex; flex-direction: column; gap: 20px; }

.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field label {
  font-size: 12px; font-weight: 800; color: #6d28d9;
  text-transform: uppercase; letter-spacing: .8px;
}
.auth-field label .required { color: #ec4899; margin-left: 2px; }

/* Input Group */
.auth-input-group { position: relative; }
.auth-input-group .auth-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: rgba(109,40,217,.5); font-size: 15px;
  pointer-events: none; transition: color .2s;
}
.auth-input-group:focus-within .auth-icon { color: #6d28d9; }

.auth-input {
  width: 100%; box-sizing: border-box;
  padding: 14px 18px 14px 46px;
  border: 2px solid rgba(109,40,217,.18);
  border-radius: 13px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: #1a1033; background: #fff;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  outline: none;
}
.auth-input:hover {
  border-color: rgba(109,40,217,.4); background: #fff;
}
.auth-input:focus {
  border-color: #6d28d9; background: #fff;
  box-shadow: 0 0 0 4px rgba(109,40,217,.12),
              0 4px 20px rgba(109,40,217,.1);
}
.auth-input::placeholder { color: rgba(109,40,217,.3); }

/* Input without icon */
.auth-input-plain {
  padding-left: 18px !important;
}

/* Password toggle */
.toggle-password {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(109,40,217,.45); cursor: pointer;
  padding: 4px; font-size: 15px;
  transition: color .2s;
}
.toggle-password:hover { color: #6d28d9; }

/* ── Options row (Remember / Forgot) ── */
.auth-options {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px;
}
.auth-checkbox {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; color: #4b5563; font-weight: 500;
}
.auth-checkbox input {
  width: 17px; height: 17px;
  accent-color: #6d28d9; cursor: pointer;
}
.auth-options a, .auth-checkbox a {
  color: #6d28d9; text-decoration: none; font-weight: 700;
  transition: color .2s;
}
.auth-options a:hover, .auth-checkbox a:hover {
  color: #4c1d95; text-decoration: underline;
}
.auth-forgot {
  color: #6d28d9; font-weight: 700;
  text-decoration: none; font-size: 13.5px; transition: color .2s;
}
.auth-forgot:hover { color: #4c1d95; text-decoration: underline; }

/* ── Row (2-col) ── */
.auth-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* ── Submit Button ── */
.auth-btn {
  width: 100%; padding: 15px 28px;
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #a855f7 100%);
  color: #fff; border: none; border-radius: 13px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 800;
  cursor: pointer; letter-spacing: .1px;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 6px 24px rgba(109,40,217,.45),
              0 2px 8px rgba(168,85,247,.3);
  position: relative; overflow: hidden;
}
.auth-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.auth-btn:hover::before { left: 150%; }
.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(109,40,217,.55),
              0 4px 14px rgba(236,72,153,.25);
}
.auth-btn:active { transform: translateY(-1px); }
.auth-btn:disabled {
  opacity: .7; cursor: not-allowed; transform: none;
}

/* ── Divider ── */
.auth-divider {
  display: flex; align-items: center; gap: 16px; margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1.5px;
  background: linear-gradient(90deg,transparent,rgba(109,40,217,.2),transparent);
}
.auth-divider span {
  font-size: 12px; color: #9ca3af; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  white-space: nowrap;
}

/* ── Footer ── */
.auth-footer {
  text-align: center; font-size: 14px; color: #6b7280;
  margin-top: 28px; font-weight: 500;
}
.auth-footer a {
  color: #6d28d9; text-decoration: none; font-weight: 800;
  transition: color .2s;
}
.auth-footer a:hover { color: #4c1d95; text-decoration: underline; }

/* ── Back link ── */
.auth-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px; font-size: 13.5px; color: #9ca3af;
  text-decoration: none; font-weight: 600;
  transition: color .2s;
}
.auth-back:hover { color: #6d28d9; }

/* ── Password Strength ── */
.pwd-strength-bar {
  height: 4px; border-radius: 4px;
  background: rgba(109,40,217,.1);
  margin-top: 8px; overflow: hidden;
}
.pwd-strength-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width .3s ease, background .3s ease;
  width: 0%;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right {
    padding: 40px 28px; background: #fff;
    min-height: 100vh;
  }
}
@media (max-width: 480px) {
  .auth-panel-right { padding: 28px 20px; }
  .auth-form-wrap { max-width: 100%; }
  .auth-header h1 { font-size: 26px; }
  .auth-row { grid-template-columns: 1fr; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .auth-btn:hover, .auth-panel-left::before,
  .auth-panel-left::after { transform: none; animation: none; }
}
