/* MediConCen sign-in — tech / AI console surface */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --login-bg: #05080f;
  --login-panel: rgba(255, 255, 255, 0.96);
  --login-panel-border: rgba(255, 255, 255, 0.65);
  --login-text: #0f172a;
  --login-muted: #64748b;
  --login-brand: #ce0034;
  --login-brand-soft: rgba(206, 0, 52, 0.45);
  --login-signal: #0891b2;
  --login-signal-soft: rgba(8, 145, 178, 0.16);
  --login-input: #f8fafc;
  --login-font: 'Outfit', 'Segoe UI', sans-serif;
  --login-mono: 'JetBrains Mono', ui-monospace, monospace;
}

.login-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--login-bg);
  display: flex;
  align-items: center;
  font-family: var(--login-font);
}

.login-tech-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(206, 0, 52, 0.28), transparent 58%),
    radial-gradient(ellipse 60% 50% at 88% 78%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(30, 58, 138, 0.2), transparent 70%),
    linear-gradient(165deg, #05080f 0%, #0a1220 48%, #070b14 100%);
}

.login-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  animation: loginGridDrift 28s linear infinite;
  opacity: 0.85;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: loginOrbPulse 9s ease-in-out infinite;
}

.login-orb--a {
  width: 280px;
  height: 280px;
  left: -40px;
  top: 12%;
  background: rgba(206, 0, 52, 0.35);
}

.login-orb--b {
  width: 320px;
  height: 320px;
  right: -60px;
  bottom: 8%;
  background: rgba(34, 211, 238, 0.22);
  animation-delay: -4s;
}

.login-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(34, 211, 238, 0.04),
    transparent
  );
  animation: loginScan 7.5s ease-in-out infinite;
}

@keyframes loginGridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 48px, 0); }
}

@keyframes loginOrbPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0.7; }
}

@keyframes loginScan {
  0% { top: -10%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 95%; opacity: 0; }
}

.login-container {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.mc-login-card {
  position: relative;
  background: var(--login-panel);
  border: 1px solid var(--login-panel-border);
  border-radius: 18px;
  padding: 2rem 1.65rem 1.7rem;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 0 0 1px rgba(8, 145, 178, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.45);
  animation: loginCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
  color: var(--login-text);
}

.mc-login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--login-brand), #22d3ee, transparent);
  opacity: 0.95;
}

.mc-login-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -55px;
  top: -55px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 70%);
  pointer-events: none;
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* HUD corner brackets */
.login-frame {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(8, 145, 178, 0.55);
  z-index: 2;
  pointer-events: none;
}

.login-frame--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.login-frame--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.login-frame--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.login-frame--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.login-heading {
  margin-bottom: 1.35rem;
}

.login-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.login-brand-logo,
.login-heading img {
  max-width: 156px;
  height: auto;
  display: block;
  margin: 0;
}

.login-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 0.95rem;
  max-width: 140px;
}

.login-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.45);
  animation: loginPulse 2s ease-out infinite;
}

.login-status-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #06b6d4, transparent);
  opacity: 0.55;
}

@keyframes loginPulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.login-heading h2 {
  color: var(--login-text);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.3rem;
  line-height: 1.15;
}

.login-heading p {
  color: var(--login-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.45;
}

.login-alert {
  font-size: 0.84rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(206, 0, 52, 0.08);
  border: 1px solid rgba(206, 0, 52, 0.25);
  color: #9f1239;
}

.login-field {
  margin-bottom: 1rem;
}

.login-form .form-label {
  display: block;
  font-family: var(--login-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 0.45rem;
}

.login-form label span.form-error {
  color: var(--login-brand);
  text-transform: none;
  letter-spacing: 0;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.88rem;
  pointer-events: none;
  transition: color 0.18s ease;
}

.login-form .form-control {
  height: 48px;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  padding: 0.55rem 0.9rem 0.55rem 2.45rem;
  font-size: 0.92rem;
  font-family: var(--login-font);
  color: var(--login-text);
  background: var(--login-input);
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-form .form-control::placeholder {
  color: #94a3b8;
}

.login-form .form-control:hover {
  border-color: #c5d0e0;
  background: #fff;
}

.login-form .form-control:focus {
  border-color: #22d3ee;
  background: #fff;
  box-shadow: 0 0 0 3px var(--login-signal-soft);
  outline: none;
  color: var(--login-text);
}

.login-input-wrap:focus-within > i {
  color: var(--login-signal);
}

.login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.25rem 0 1.2rem;
}

.login-meta .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  min-height: auto;
  padding: 0;
}

.login-meta .form-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background-color: #fff;
  float: none;
}

.login-meta .form-check-input:checked {
  background-color: var(--login-brand);
  border-color: var(--login-brand);
}

.login-meta .form-check-label {
  font-weight: 500;
  font-size: 0.86rem;
  color: #475569;
  cursor: pointer;
}

.mc-btn-link.login-link {
  border: none;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background:
    linear-gradient(135deg, #e21842 0%, var(--login-brand) 50%, #9f0028 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 28px rgba(206, 0, 52, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.mc-btn-link.login-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.mc-btn-link.login-link:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 16px 34px rgba(206, 0, 52, 0.42);
  filter: brightness(1.05);
}

.mc-btn-link.login-link:hover::after {
  transform: translateX(120%);
}

.mc-btn-link.login-link:active {
  transform: translateY(0);
}

.mc-btn-link.login-link:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.login-forgot {
  display: block;
  margin-top: 1.05rem;
  text-align: center;
  font-family: var(--login-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--login-signal);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.login-forgot:hover {
  color: var(--login-brand);
  text-decoration: none;
}

@media (min-width: 576px) {
  .mc-login-card {
    padding: 2.25rem 2rem 1.9rem;
  }
}

@media (max-width: 575.98px) {
  .mc-login-card {
    padding: 1.55rem 1.2rem 1.35rem;
    border-radius: 14px;
  }
  .login-heading h2 {
    font-size: 1.45rem;
  }
  .login-brand-logo,
  .login-heading img {
    max-width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-grid,
  .login-orb,
  .login-scan,
  .login-status-dot,
  .mc-login-card,
  .mc-btn-link.login-link::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Legacy hooks */
.mc-login { min-height: 100vh; }
.mc-login-content {
  background: var(--login-panel);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  border-radius: 18px;
  z-index: 9;
}
