/* ==========================================================================
   HEFAMS Pro — Login Experience
   Replaces login_css/style.css (presentation only; form logic unchanged).
   ========================================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Poppins", "Nunito", "Segoe UI", Arial, sans-serif;
}

body {
  background: #081826;
  color: #eaf4f4;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Animated aurora backdrop
   -------------------------------------------------------------------------- */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(6, 182, 212, .28), transparent 60%),
    radial-gradient(900px 700px at -15% 110%, rgba(13, 148, 136, .30), transparent 55%),
    linear-gradient(160deg, #081826 0%, #0b2b33 55%, #0a1e2b 100%);
  overflow: hidden;
}

.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: aurora-float 14s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(20, 184, 166, .55), transparent 65%);
  top: -140px; left: -120px;
}
.aurora span:nth-child(2) {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(6, 182, 212, .45), transparent 65%);
  bottom: -180px; right: -140px;
  animation-delay: -5s;
}
.aurora span:nth-child(3) {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(99, 102, 241, .4), transparent 65%);
  top: 38%; left: 58%;
  animation-delay: -9s;
}
@keyframes aurora-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -34px, 0) scale(1.12); }
}

/* Subtle grid overlay */
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Glass card
   -------------------------------------------------------------------------- */
.form {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 42px 38px 34px;
  border-radius: 26px;
  background: rgba(13, 32, 46, .55);
  border: 1px solid rgba(148, 233, 221, .16);
  box-shadow:
    0 24px 60px rgba(2, 12, 20, .55),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  animation: card-in .7s cubic-bezier(.2, .9, .3, 1.2) both;
}
.form::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #2dd4bf, #06b6d4, transparent);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */
.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}
.brand-logos img {
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4));
  animation: logo-in .8s ease both;
}
.brand-logos img:nth-child(2) { animation-delay: .12s; }
@keyframes logo-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand-title {
  margin: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(120deg, #5eead4, #22d3ee 60%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub {
  margin: 6px 0 28px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .6px;
  color: #9db8c4;
}

/* --------------------------------------------------------------------------
   Inputs
   -------------------------------------------------------------------------- */
.login-form .field {
  position: relative;
  margin-bottom: 16px;
  animation: field-in .6s ease both;
}
.login-form .field:nth-of-type(1) { animation-delay: .15s; }
.login-form .field:nth-of-type(2) { animation-delay: .25s; }
@keyframes field-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-form .field svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #5f8a96;
  transition: color .2s ease;
  pointer-events: none;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  padding: 15px 18px 15px 48px;
  font-size: 15px;
  font-family: inherit;
  color: #eaf4f4;
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(148, 233, 221, .18);
  border-radius: 999px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.login-form input::placeholder { color: #7c9aa8; }
.login-form input:focus {
  background: rgba(255, 255, 255, .10);
  border-color: #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .18), 0 8px 22px rgba(6, 182, 212, .12);
}
.login-form .field:focus-within svg { color: #2dd4bf; }

/* --------------------------------------------------------------------------
   Submit
   -------------------------------------------------------------------------- */
.login-form input#login[type="submit"] {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  font-size: 15.5px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #04241f;
  background: linear-gradient(135deg, #2dd4bf, #22d3ee);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(13, 148, 136, .35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  animation: field-in .6s ease .35s both;
}
.login-form input#login[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 40px rgba(13, 148, 136, .5);
}
.login-form input#login[type="submit"]:active { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Footer link + page footer
   -------------------------------------------------------------------------- */
.form .center {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #8fa9b7;
}
.form .center a {
  color: #2dd4bf;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}
.form .center a:hover { color: #67e8f9; text-decoration: underline; }

.login-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18px 12px 26px;
  font-size: 12.5px;
  color: #6e8a99;
  background: linear-gradient(160deg, #081826 0%, #0a1e2b 100%);
}
.login-footer a { color: #2dd4bf; text-decoration: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .login-page { padding: 28px 14px 14px; }
  .form { padding: 32px 22px 26px; border-radius: 22px; max-width: 100%; }
  .brand-title { font-size: 25px; letter-spacing: 2.4px; }
  .brand-sub { font-size: 11.5px; margin-bottom: 22px; }
  .brand-logos { gap: 14px; }
  .brand-logos img { transform: scale(.88); }
  .login-form input[type="email"],
  .login-form input[type="password"],
  .login-form input[type="text"] { padding: 13px 16px 13px 46px; font-size: 14.5px; }
  .login-form input#login[type="submit"] { padding: 14px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span, .form, .brand-logos img,
  .login-form .field, .login-form input#login[type="submit"] { animation: none !important; }
}
