/* ========================================================================
   FMF LOGIN / AUTH CSS
   ------------------------------------------------------------------------
   Purpose:
   - Login page shell
   - Register/onboarding shell if they share this structure
   - Auth-specific form and branding layout

   Notes:
   - Keep this file limited to auth-related pages.
======================================================================== */

/* ========================================================================
   1. AUTH SHELL
======================================================================== */

.fmf-login-shell{
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(56,189,248,.10), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(59,130,246,.14), transparent 30%),
    linear-gradient(180deg, #081426 0%, #0b1830 100%);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fmf-login-bg-orb{
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: .45;
}

.fmf-login-bg-orb-1{
  width: 260px;
  height: 260px;
  background: rgba(34,211,238,.16);
  top: 8%;
  left: 8%;
}

.fmf-login-bg-orb-2{
  width: 320px;
  height: 320px;
  background: rgba(37,99,235,.14);
  right: 6%;
  bottom: 6%;
}

.fmf-login-wrap{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 32px;
  align-items: stretch;
}

/* ========================================================================
   2. AUTH SURFACES
======================================================================== */

.fmf-login-brand,
.fmf-login-card{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(20,34,55,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 20px 60px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.fmf-login-brand{
  border-radius: 28px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
}

.fmf-login-card{
  border-radius: 28px;
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========================================================================
   3. BRANDING BLOCK
======================================================================== */

.fmf-login-logo-wrap{
  margin-bottom: 28px;
}

.fmf-login-logo{
  width: 150px;
  height: auto;
  display: block;
}

.fmf-login-eyebrow{
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.fmf-login-brand h1{
  margin: 0 0 12px;
  color: #fff;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 800;
}

.fmf-login-brand p{
  margin: 0;
  max-width: 560px;
  color: rgba(255,255,255,.72);
  font-size: 18px;
  line-height: 1.6;
}

/* ========================================================================
   4. CARD HEADER
======================================================================== */

.fmf-login-card-head{
  margin-bottom: 20px;
}

.fmf-login-card-head h2{
  margin: 0 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
}

.fmf-login-card-head p{
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 15px;
}

/* ========================================================================
   5. ALERTS
======================================================================== */

.fmf-login-alert{
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.fmf-login-alert-error{
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.20);
  color: #fecaca;
}

.fmf-login-alert-success{
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.20);
  color: #bbf7d0;
}

/* ========================================================================
   6. FORM STYLING
======================================================================== */

.fmf-login-form-wrap form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fmf-login-form-wrap label{
  display: block;
  margin: 0 0 7px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 700;
}

.fmf-login-form-wrap input[type="text"],
.fmf-login-form-wrap input[type="password"]{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #fff;
  padding: 14px 16px;
  min-height: 52px;
  font-size: 15px;
  box-shadow: none;
}

.fmf-login-form-wrap input[type="text"]::placeholder,
.fmf-login-form-wrap input[type="password"]::placeholder{
  color: rgba(255,255,255,.42);
}

.fmf-login-form-wrap input[type="text"]:focus,
.fmf-login-form-wrap input[type="password"]:focus{
  outline: none;
  border-color: rgba(56,189,248,.72);
  box-shadow: 0 0 0 3px rgba(56,189,248,.14);
}

.fmf-login-form-wrap .login-remember{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 2px;
}

.fmf-login-form-wrap .login-remember label{
  margin: 0;
  font-weight: 600;
  color: rgba(255,255,255,.72);
}

.fmf-login-form-wrap input[type="checkbox"]{
  accent-color: #38bdf8;
}

.fmf-login-form-wrap .login-submit{
  margin-top: 4px;
}

.fmf-login-form-wrap input[type="submit"]{
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%);
  box-shadow: 0 14px 34px rgba(37,99,235,.24);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.fmf-login-form-wrap input[type="submit"]:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(37,99,235,.30);
}

/* ========================================================================
   7. SECONDARY LINKS
======================================================================== */

.fmf-login-links{
  margin-top: 18px;
  text-align: center;
}

.fmf-login-links a{
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
}

.fmf-login-links a:hover{
  color: #bae6fd;
}

/* ========================================================================
   8. RESPONSIVE
======================================================================== */

@media (max-width: 980px){
  .fmf-login-shell{
    padding: 20px;
  }

  .fmf-login-wrap{
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .fmf-login-brand{
    min-height: auto;
    padding: 28px;
  }

  .fmf-login-brand h1{
    font-size: 38px;
  }

  .fmf-login-card{
    padding: 28px 24px;
  }
}