/* ============================================================
   Pagina de autentificare – brand Valrom (navy #003865 / accent #00A3E0)
   ============================================================ */
.login-body {
  margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; position: relative;
  background: var(--navy, #003865); color: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-direction: column;
}
/* fundal animat */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
  background: radial-gradient(1200px 700px at 15% 20%, rgba(0,163,224,.28) 0%, transparent 60%),
              radial-gradient(900px 600px at 90% 90%, rgba(0,163,224,.22) 0%, transparent 60%),
              linear-gradient(160deg, #003865 0%, #012a4d 100%); }
.bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; background: var(--accent, #00A3E0);
  animation: drift 22s ease-in-out infinite alternate; }
.bg .b1 { width: 52vw; height: 52vw; left: -18vw; top: -22vw; animation-duration: 26s; }
.bg .b2 { width: 40vw; height: 40vw; right: -14vw; bottom: -18vw; opacity: .35; animation-delay: -8s; }
.bg .b3 { width: 22vw; height: 22vw; left: 55%; top: 10%; opacity: .18; animation-delay: -15s; animation-duration: 30s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vw) scale(1.12); } }
/* linii „țeavă” subtile */
.bg .lines { position: absolute; inset: 0; opacity: .07;
  background-image: repeating-linear-gradient(-32deg, transparent 0 46px, #fff 46px 48px); }

.login-wrap { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  gap: 40px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 40px 32px; box-sizing: border-box; }

/* ---- semnul 30 animat ---- */
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.mark { width: 100%; max-width: 560px; animation: float 6s ease-in-out 3.2s infinite; filter: drop-shadow(0 18px 40px rgba(0,163,224,.35)); }
.mark svg { width: 100%; height: auto; display: block; overflow: visible; }
.mark .p { fill: var(--accent, #00A3E0); fill-opacity: 0; stroke: var(--accent, #00A3E0); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(.65,.05,.36,1) .25s forwards, fillin 1.1s ease 1.9s forwards; }
.mark .glow { fill: none; stroke: #fff; stroke-width: 2; stroke-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(.65,.05,.36,1) .45s forwards, glowfade 1.4s ease 2.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes glowfade { from { stroke-opacity: .9; } to { stroke-opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero h1 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px;
  opacity: 0; transform: translateY(14px); animation: rise .8s ease 1.2s forwards; }
.hero h1 span { color: var(--accent, #00A3E0); }
.hero p { margin: 0; font-size: 15px; color: rgba(255,255,255,.78); opacity: 0; transform: translateY(14px); animation: rise .8s ease 1.5s forwards; }
.hero .years { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.7);
  opacity: 0; animation: rise .8s ease 1.8s forwards; }
.hero .years i { display: inline-block; width: 42px; height: 2px; background: var(--accent, #00A3E0); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---- card ---- */
.card { background: #fff; color: #1a1f2b; border-radius: 22px; padding: 34px 36px 26px; box-shadow: 0 30px 80px rgba(0,20,45,.45), 0 0 0 1px rgba(255,255,255,.08);
  opacity: 0; transform: translateY(24px) scale(.98); animation: cardin .9s cubic-bezier(.2,.8,.2,1) .5s forwards; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--navy, #003865), var(--accent, #00A3E0)); }
@keyframes cardin { to { opacity: 1; transform: none; } }
.card .logo-full { display: block; width: min(300px, 100%); height: auto; margin: 4px auto 22px; }
.card h2 { margin: 0 0 4px; font-size: 19px; color: var(--navy, #003865); }
.card .sub { margin: 0 0 20px; color: #5b6270; font-size: 13px; line-height: 1.45; }
.field { position: relative; margin-bottom: 14px; }
.field input { width: 100%; box-sizing: border-box; border: 1.5px solid #cfd8e3; border-radius: 12px; padding: 22px 14px 8px 46px; font: inherit; font-size: 15px; color: #1a1f2b; background: #f8fafc;
  outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.field label { position: absolute; left: 46px; top: 15px; font-size: 14px; color: #6b7280; pointer-events: none; transition: all .15s ease; }
.field .ic { position: absolute; left: 15px; top: 14px; width: 20px; height: 20px; color: #94a3b8; transition: color .15s; }
.field input:focus { border-color: var(--accent, #00A3E0); background: #fff; box-shadow: 0 0 0 4px rgba(0,163,224,.18); }
.field input:focus ~ .ic { color: var(--accent, #00A3E0); }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label { top: 6px; font-size: 11px; color: var(--accent, #00A3E0); font-weight: 700; letter-spacing: .3px; }
.field .eye { position: absolute; right: 10px; top: 11px; width: 30px; height: 30px; border: 0; background: none; color: #94a3b8; cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.field .eye:hover { color: var(--navy, #003865); background: #eef2f7; }
.btn-login { width: 100%; border: 0; border-radius: 12px; padding: 14px 16px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--accent, #00A3E0), #0088c4); box-shadow: 0 10px 24px rgba(0,163,224,.35); position: relative; overflow: hidden;
  transition: transform .12s, box-shadow .12s; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,163,224,.45); }
.btn-login:active { transform: translateY(1px); }
.btn-login::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shine 3.5s ease 2.5s infinite; }
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }
.err { background: #fde2e2; color: #991b1b; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center;
  animation: shake .5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.card .meta { margin: 18px 0 0; text-align: center; color: #8b93a3; font-size: 12px; line-height: 1.5; }
.card .links { margin-top: 14px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.card .links a { color: var(--navy, #003865); font-size: 12px; font-weight: 600; text-decoration: none; border: 1px solid #dde3ec; border-radius: 999px; padding: 5px 11px; }
.card .links a:hover { border-color: var(--accent, #00A3E0); color: var(--accent, #00A3E0); }

.dev-credit { position: relative; z-index: 1; text-align: center; font-size: 12px; color: rgba(255,255,255,.55); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); letter-spacing: .3px; }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; gap: 22px; padding: 28px 18px 16px; }
  .hero { align-items: center; text-align: center; gap: 12px; }
  .mark { max-width: 250px; }
  .hero h1 { font-size: 22px; }
  .hero .years { font-size: 10.5px; letter-spacing: 1.5px; white-space: nowrap; }
  .hero .years i { width: 22px; }
  .hero p { font-size: 13.5px; }
  .card { padding: 26px 22px 20px; border-radius: 18px; }
  .card .logo-full { width: min(240px, 100%); margin-bottom: 16px; }
  .bg .lines { display: none; }
}
@media (max-height: 640px) and (max-width: 900px) {
  .mark { max-width: 170px; }
  .hero p, .hero .years { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mark, .mark .p, .mark .glow, .hero h1, .hero p, .hero .years, .card, .btn-login::after, .bg .blob { animation: none !important; }
  .mark .p { fill-opacity: 1; stroke-dashoffset: 0; }
  .hero h1, .hero p, .hero .years, .card { opacity: 1; transform: none; }
}
