/* ============================================================
   EROS — Login Page Styles
   ============================================================ */

:root {
  --reams-dark:    #0f172a;
  --reams-navy:    #1e3a8a;
  --reams-blue:    #0284c7;
  --reams-cyan:    #06b6d4;
  --reams-accent1: #2152ff;
  --reams-accent2: #21d4fd;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(150deg, var(--reams-dark) 0%, var(--reams-navy) 40%, var(--reams-blue) 75%, var(--reams-cyan) 100%);
}

/* ── Full-screen centering wrapper ── */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 1rem;
}

/* ── The card itself (two-column) ── */
.login-card {
  display: flex;
  width: 820px;
  max-width: 98vw;
  max-height: 96vh;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,.35), 0 4px 20px rgba(0,0,0,.18);
}

/* ── Left: form column ── */
.card-form-col {
  flex: 0 0 360px;
  background: #ffffff;
  padding: 1.6rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 96vh;
}

/* ── Right: animated column ── */
.card-anim-col {
  flex: 1 1 0%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--reams-dark) 0%, var(--reams-navy) 40%, var(--reams-blue) 75%, var(--reams-cyan) 100%);
  display: none;
}

@media (min-width: 640px) {
  .card-anim-col { display: block; }
}

/* ────────────────────────────
   FORM CONTENT
──────────────────────────── */

/* ── Logo ── */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.55rem;
}

.logo-wrap img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid #e0e7ff;
  background: #f0f4ff;
  padding: 5px;
}

/* ── Title ── */
.card-title-wrap {
  text-align: center;
  margin-bottom: 0.9rem;
}

.app-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  background: linear-gradient(to right, var(--reams-accent1), var(--reams-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-sub {
  font-size: 0.775rem;
  color: #6b7280;
  margin: 0;
}

/* ── Info alert box ── */
.info-alert {
  background: #eff6ff;
  border-left: 4px solid var(--reams-accent1);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
}

.info-alert-head {
  font-weight: 700;
  font-size: 0.775rem;
  color: var(--reams-accent1);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.info-alert p {
  font-size: 0.72rem;
  color: #3b82f6;
  margin: 0;
  line-height: 1.4;
}

/* ── Error alert box ── */
.error-alert {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  color: #dc2626;
  font-size: 0.775rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

/* ── Form fields ── */
.field-group { margin-bottom: 0.75rem; }

.field-label {
  display: block;
  font-size: 0.775rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.3rem;
}

.field-label i {
  color: var(--reams-accent1);
  width: 14px;
  text-align: center;
  margin-right: 2px;
}

.field-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  color: #374151;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  background: #fff;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.field-input:focus {
  border-color: var(--reams-accent1);
  box-shadow: 0 0 0 3px rgba(33, 82, 255, .12);
}

.field-input::placeholder { color: #9ca3af; }

/* ── Password wrapper + eye toggle ── */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap .field-input { padding-right: 2.6rem; }

.eye-btn {
  position: absolute;
  right: 0.7rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.eye-btn:hover { color: var(--reams-accent1); }
.eye-btn:focus { outline: none; }

/* Hide browser-native password reveal button */
#pwField::-ms-reveal,
#pwField::-ms-clear {
  display: none;
}
#pwField::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
}

/* ── Login button ── */
.btn-login {
  width: 100%;
  padding: 0.72rem 1rem;
  background: linear-gradient(to right, var(--reams-accent1), var(--reams-accent2));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity .2s, transform .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
}

.btn-login:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33, 82, 255, .35);
}

.btn-login:active { transform: translateY(0); opacity: 1; }

/* ── Card footer ── */
.card-foot {
  text-align: center;
  margin-top: 0.9rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
}

.card-foot p { font-size: 0.7rem; color: #9ca3af; margin: 0.15rem 0; }
.card-foot i { color: #6b7280; }

/* ══════════════════════════════════════════════
   ANIMATED PANEL (left side)
══════════════════════════════════════════════ */

/* ── Waves slide from right to left ── */
@keyframes waveSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.wave-track { display: flex; width: 200%; animation: waveSlide 14s linear infinite; opacity: .18; }
.wave-track img { width: 50%; flex-shrink: 0; }

/* ── Floating orbs ── */
@keyframes orbFloat {
  0%, 100% { transform: translateY(0)    scale(1);   opacity: .55; }
  50%      { transform: translateY(-30px) scale(1.1); opacity: .35; }
}
.orb {
  position: absolute; border-radius: 9999px; filter: blur(32px);
  animation: orbFloat 6s ease-in-out infinite;
}
.orb-1 { width: 180px; height: 180px; background: rgba(56,189,248,.45);  top: 12%;   left: 5%;   animation-delay: 0s; }
.orb-2 { width: 130px; height: 130px; background: rgba(99,102,241,.40);  top: 50%;   right: 8%;  animation-delay: 2s; }
.orb-3 { width: 100px; height: 100px; background: rgba(6,182,212,.35);   bottom: 15%; left: 30%; animation-delay: 4s; }

/* ── Central monitor / screen ── */
@keyframes screenFade {
  0%, 100% { opacity: 1; }
  50%      { opacity: .85; }
}
.monitor-group { animation: screenFade 3s ease-in-out infinite; }

/* ── Typing cursor ── */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor { animation: blink 1s step-start infinite; }

/* ── Key-press bounce ── */
@keyframes keyPress {
  0%, 100% { transform: scaleY(1); }
  30%      { transform: scaleY(.85); }
  60%      { transform: scaleY(1.05); }
}
.key-row-1 { transform-origin: center bottom; animation: keyPress 2.2s ease-in-out infinite; }
.key-row-2 { transform-origin: center bottom; animation: keyPress 2.2s ease-in-out infinite; animation-delay: .55s; }
.key-row-3 { transform-origin: center bottom; animation: keyPress 2.2s ease-in-out infinite; animation-delay: 1.1s; }

/* ── Lock-icon bounce ── */
@keyframes lockBounce {
  0%, 100% { transform: translateY(0)    scale(1); }
  20%      { transform: translateY(-8px)  scale(1.15); }
  40%      { transform: translateY(0)    scale(.95); }
  60%      { transform: translateY(-4px)  scale(1.05); }
  80%      { transform: translateY(0)    scale(1); }
}
.lock-icon { animation: lockBounce 3.6s ease-in-out infinite; transform-origin: center; }

/* ── Sparkle dots ── */
@keyframes sparklePop {
  0%, 100% { transform: scale(0); opacity: 0; }
  50%      { transform: scale(1.3); opacity: 1; }
}
.sparkle {
  position: absolute; border-radius: 9999px; background: white;
  animation: sparklePop 2.4s ease-in-out infinite;
}
.sp1 { width: 6px; height: 6px; top: 20%; left: 58%; animation-delay: .3s; }
.sp2 { width: 4px; height: 4px; top: 38%; left: 72%; animation-delay: .9s; }
.sp3 { width: 5px; height: 5px; top: 55%; left: 60%; animation-delay: 1.5s; }
.sp4 { width: 3px; height: 3px; top: 68%; left: 78%; animation-delay: 2.1s; }
.sp5 { width: 5px; height: 5px; top: 25%; left: 42%; animation-delay: 0s; }

/* ── Progress bar on screen ── */
@keyframes progressFill {
  0%   { width: 0%; }
  60%  { width: 100%; }
  100% { width: 0%; }
}
.progress-bar { animation: progressFill 3.6s ease-in-out infinite; }

/* ── Signal / wifi arcs ── */
@keyframes signalPing {
  0%, 100% { opacity: .2; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1); }
}
.sig-1 { animation: signalPing 1.8s ease-in-out infinite; animation-delay: 0s;  }
.sig-2 { animation: signalPing 1.8s ease-in-out infinite; animation-delay: .4s; }
.sig-3 { animation: signalPing 1.8s ease-in-out infinite; animation-delay: .8s; }

/* ── Bottom label ── */
.panel-label {
  position: absolute; bottom: 32px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.85);
}
