/* ============================================================
   admin-auth.css — Admin Login Page  (Split Panel Design)
   ============================================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility ─────────────────────────────────────────────── */
.adm-hidden { display: none !important; }

/* ── Base ────────────────────────────────────────────────── */
.adm-auth-body {
  min-height: 100vh;
  background: #030712;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ── Animated orbs ───────────────────────────────────────── */
.adm-auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.15;
  animation: float 9s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #23E5C4, transparent 65%);
  top: -180px; left: -120px;
  animation-delay: 0s;
}
.orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #0A9CB0, transparent 65%);
  bottom: -100px; right: -80px;
  animation-delay: -4s;
}
.orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #3b82f6, transparent 65%);
  top: 45%; left: 55%;
  animation-delay: -7s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.04); }
}

/* ── Main wrapper ────────────────────────────────────────── */
.adm-auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: auto;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

/* ── LEFT PANEL — Branding ───────────────────────────────── */
.adm-auth-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

/* subtle teal left-border glow */
.adm-auth-side::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(35,229,196,.25) 35%,
    rgba(10,156,176,.35) 65%,
    transparent 100%
  );
}

.adm-side-logo {
  display: inline-block;
  margin-bottom: 32px;
}
.adm-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(35,229,196,.35));
  transition: filter .3s;
}
.adm-side-logo:hover .adm-logo-img {
  filter: drop-shadow(0 0 26px rgba(35,229,196,.6));
}

.adm-side-tagline {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 44px;
  line-height: 1.5;
  font-style: italic;
}

.adm-side-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.adm-side-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}
.adm-side-features li .fa {
  width: 36px; height: 36px;
  background: rgba(35,229,196,.08);
  border: 1px solid rgba(35,229,196,.15);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #23E5C4;
  font-size: 15px;
  flex-shrink: 0;
}

/* ── RIGHT PANEL — Card ──────────────────────────────────── */
.adm-auth-card {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 44px;
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-left: 1px solid rgba(255,255,255,.06);
  animation: slideIn .45s cubic-bezier(.16,1,.3,1) both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Avatar icon ─────────────────────────────────────────── */
.adm-auth-avatar {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(35,229,196,.15), rgba(10,156,176,.2));
  border: 1px solid rgba(35,229,196,.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #23E5C4;
  font-size: 22px;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(35,229,196,.12);
}

/* ── Header ──────────────────────────────────────────────── */
.adm-auth-header {
  margin-bottom: 32px;
}
.adm-auth-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -.5px;
  margin-bottom: 6px;
}
.adm-auth-header p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

/* ── Error alert ─────────────────────────────────────────── */
.adm-auth-alert {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  margin-bottom: 24px;
  animation: shake .35s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

/* ── Fields ──────────────────────────────────────────────── */
.adm-auth-field {
  margin-bottom: 20px;
}
.adm-auth-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.adm-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.adm-field-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: #475569;
  pointer-events: none;
}
.adm-field-wrap input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 44px;
  color: #e2e8f0;
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.adm-field-wrap input:focus {
  border-color: rgba(35,229,196,.45);
  background: rgba(35,229,196,.04);
  box-shadow: 0 0 0 4px rgba(35,229,196,.08);
}
.adm-field-wrap input::placeholder { color: #2d3748; }

/* Eye toggle */
.adm-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: color .15s;
}
.adm-eye-btn:hover { color: #94a3b8; }

/* ── Submit button ───────────────────────────────────────── */
.adm-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #23E5C4, #0A9CB0);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(35,229,196,.28);
  font-family: inherit;
  letter-spacing: -.1px;
  color: #0a1628;
}
.adm-auth-submit:hover:not(:disabled) {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(35,229,196,.42);
}
.adm-auth-submit:active:not(:disabled) { transform: translateY(0); }
.adm-auth-submit:disabled { opacity: .6; cursor: not-allowed; }

.btn-spinner .fa-spinner {
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────────────────── */
.adm-auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 12.5px;
  color: #334155;
}
.adm-auth-footer a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.adm-auth-footer a:hover { color: #23E5C4; }
.adm-footer-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #334155;
  display: inline-block;
}

/* ── Credit ──────────────────────────────────────────────── */
.adm-auth-credit {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  letter-spacing: .2px;
}
.adm-auth-credit a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.adm-auth-credit a:hover { color: #23E5C4; }
.adm-credit-heart {
  color: #f87171;
  font-style: normal;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .adm-auth-wrap {
    flex-direction: column;
    min-height: 100vh;
  }
  .adm-auth-side {
    padding: 40px 32px 28px;
    flex: none;
  }
  .adm-auth-side::after { display: none; }
  .adm-auth-side .adm-side-features { display: none; }
  .adm-auth-side .adm-side-tagline { margin-bottom: 0; font-size: 14px; }
  .adm-auth-card {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 36px 28px 40px;
    flex: 1;
  }
}
