/* LA7 — Auth pages (login / forgot / reset). Light black & white glass theme. */
:root { --ink: #16181d; --muted: #6b7280; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: 'Inter', 'Cairo', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: #eef0f3;
}

/* layered background: radial spotlight + faint grid */
.bg-spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(700px 500px at 85% 110%, rgba(0,0,0,.05), transparent 60%),
    linear-gradient(135deg, #f7f8fa 0%, #eceef1 55%, #e2e5ea 100%);
}
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .6;
  background-image:
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  pointer-events: none; z-index: 0; animation: float 16s ease-in-out infinite;
}
.orb.o1 { width: 380px; height: 380px; background: rgba(255,255,255,.85); top: -120px; right: -60px; }
.orb.o2 { width: 320px; height: 320px; background: rgba(180,185,195,.5); bottom: -110px; left: -60px; animation-delay: -5s; }
@keyframes float { 0%,100%{transform:translate(0,0);} 33%{transform:translate(24px,-28px);} 66%{transform:translate(-18px,22px);} }

/* glass card */
.auth-card {
  position: relative; z-index: 2; width: 100%; max-width: 432px;
  padding: 42px 40px 30px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 30px 70px rgba(20,24,40,.16), 0 2px 8px rgba(20,24,40,.06), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  color: var(--ink);
  animation: rise .8s cubic-bezier(.2,.85,.2,1) both;
}
@keyframes rise { from{opacity:0;transform:translateY(28px) scale(.98);} to{opacity:1;transform:none;} }

/* logo badge */
.auth-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.logo-badge {
  width: 78px; height: 78px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ffffff, #eef0f3);
  border: 1px solid rgba(20,24,40,.08);
  box-shadow: 0 10px 26px rgba(20,24,40,.12), inset 0 1px 0 rgba(255,255,255,.9);
  position: relative; overflow: hidden;
}
.logo-badge::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.8), transparent 55%);
  pointer-events: none;
}
.logo-badge img { height: 44px; width: auto; filter: drop-shadow(0 3px 8px rgba(20,24,40,.18)); }

.auth-card h2 { color: var(--ink); font-weight: 700; margin: 0 0 4px; font-size: 1.6rem; text-align: center; letter-spacing: -.01em; }
.auth-sub { color: var(--muted); font-size: .9rem; text-align: center; margin: 0 0 28px; }

.auth-card .form-label {
  color: #3a3f4a; font-weight: 600; font-size: .82rem;
  margin-bottom: 7px; display: block; letter-spacing: .02em; text-transform: uppercase;
}
.auth-card .form-group { margin-bottom: 18px; }

/* input with leading icon + optional trailing toggle */
.input-wrap { position: relative; }
.input-wrap .lead-ic {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: #9aa0ac; pointer-events: none;
}
.input-wrap .pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; color: #9aa0ac;
  border-radius: 9px; padding: 0;
}
.input-wrap .pw-toggle:hover { color: #16181d; background: rgba(20,24,40,.06); }
.input-wrap .pw-toggle svg { width: 19px; height: 19px; }

.auth-card .form-control {
  width: 100%; background: rgba(255,255,255,0.8);
  border: 1px solid rgba(20,24,40,0.12); border-radius: 14px;
  padding: 14px 16px 14px 44px; color: var(--ink); font-size: .96rem; font-family: inherit;
  transition: border-color .2s, background .2s, box-shadow .2s; outline: none;
}
.auth-card .form-control::placeholder { color: #aeb3bd; }
.auth-card .form-control:focus {
  background: #ffffff; border-color: #16181d;
  box-shadow: 0 0 0 4px rgba(22,24,29,.10);
}
.auth-card .form-control:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); transition: background-color 9999s ease-in-out 0s;
}

.auth-card a { color: #16181d; text-decoration: none; font-size: .85rem; font-weight: 600; }
.auth-card a:hover { color: #000; text-decoration: underline; }

.auth-card .invalid-feedback {
  display: block; color: #c0392b; font-size: .82rem; margin-top: 7px;
}
.auth-card .form-control.is-invalid { border-color: #e06b5e; box-shadow: 0 0 0 3px rgba(224,107,94,.15); }

.btn-login, .auth-card .btn-primary {
  position: relative; width: 100%; border: none; border-radius: 14px;
  padding: 14px 18px; font-weight: 700; font-size: 1rem; color: #ffffff; cursor: pointer;
  font-family: inherit; overflow: hidden;
  background: linear-gradient(135deg, #2a2d34 0%, #16181d 55%, #050608 100%);
  box-shadow: 0 14px 30px rgba(20,24,40,.28);
  transition: transform .15s, box-shadow .2s, filter .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-login::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg); transition: left .6s;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(20,24,40,.4); }
.btn-login:hover::before { left: 130%; }
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-login svg { width: 18px; height: 18px; }

.d-grid { display: grid; }
.auth-foot { text-align: center; margin-top: 24px; font-size: .78rem; color: var(--muted); }
.auth-foot a { font-size: .78rem; }

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px 24px; border-radius: 22px; }
}
