body {
  min-height: 100vh;
  background: linear-gradient(120deg, #e3eafc 0%, #c7d2fe 50%, #a5b4fc 100%);
  background-size: 200% 200%;
  animation: gradientMove 18s ease-in-out infinite;
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-glass-wrap {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 234, 252, 0.7);
  backdrop-filter: blur(2px);
}

.login-glass-card {
  background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%) !important;
  background-size: 200% 200%;
  animation: cardGradientMove 8s ease-in-out infinite, fadeIn 0.7s cubic-bezier(.4,2,.6,1);
  box-shadow: 0 8px 32px 0 rgba(30,30,30,0.18), 0 2px 8px 0 rgba(24,24,24,0.10);
  border: 1.5px solid #181f1f;
  padding: 40px 32px 32px 32px;
  min-width: 340px;
  max-width: 370px;
  width: 100%;
  margin: 32px 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.7s cubic-bezier(.4,2,.6,1);
  backdrop-filter: blur(8px);
}
.login-glass-card::before {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: 3;
  border-radius: 22px;
  padding: 0;
  background: linear-gradient(90deg, #fff 0%, #fe5500 50%, #181f1f 100%);
  filter: blur(0.5px);
  border: 1.5px solid transparent;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  /* No animation */
}
.login-glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1.5px solid #fff;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 0 2px #181f1f, 0 0 0 6px #fff2;
}
@keyframes cardGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.login-logo-img {
  max-width: 120px;
  max-height: 60px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px #0002);
}

.login-title {
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  text-fill-color: unset;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.login-form {
  width: 100%;
}

/* Floating label field group */
.floating-group {
  position: relative;
  margin-bottom: 28px;
}
.floating-input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: rgba(255,255,255,0.7);
  color: #23243a;
  font-size: 1.08rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(24,24,24,0.06);
  position: relative;
  z-index: 1;
}
.floating-input:focus {
  border-color: var(--accent-orange);
  background: #fff;
}
.floating-label {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d72f1;
  font-size: 1.08rem;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(.4,2,.6,1);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 7px;
}
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: -12px;
  left: 8px;
  font-size: 0.93rem;
  color: var(--accent-orange);
  background: rgba(255,255,255,0.92);
  padding: 0 6px;
  border-radius: 6px;
  opacity: 1;
  box-shadow: 0 2px 8px 0 var(--accent-orange)11;
}
.floating-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d72f1;
  font-size: 1.2rem;
  z-index: 2;
  pointer-events: none;
  transition: color 0.2s;
}
.floating-input:focus ~ .floating-icon,
.floating-input:not(:placeholder-shown) ~ .floating-icon {
  color: var(--accent-orange);
}

/* Gamer-style bracket focus effect */
.login-input:focus-visible {
  outline: none;
}
.login-input:focus {
  box-shadow:
    0 0 0 2px var(--accent-orange),
    8px 8px 0 -6px #fff,
    -8px 8px 0 -6px #fff,
    8px -8px 0 -6px #fff,
    -8px -8px 0 -6px #fff;
  animation: bracket-pulse 0.7s;
}
@keyframes bracket-pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-orange), 0 0 0 0 #fff, 0 0 0 0 #fff, 0 0 0 0 #fff, 0 0 0 0 #fff; }
  60% { box-shadow: 0 0 0 2px var(--accent-orange), 8px 8px 0 -6px #fff, -8px 8px 0 -6px #fff, 8px -8px 0 -6px #fff, -8px -8px 0 -6px #fff; }
  100% { box-shadow: 0 0 0 2px var(--accent-orange), 8px 8px 0 -6px #fff, -8px 8px 0 -6px #fff, 8px -8px 0 -6px #fff, -8px -8px 0 -6px #fff; }
}

.input-icon {
  color: var(--accent-orange);
  transition: color 0.2s;
}
.login-input:focus ~ .input-icon,
.form-group:focus-within .input-icon {
  color: var(--accent-orange-dark);
}
.toggle-password {
  color: #bfc9d1;
  transition: color 0.2s;
}
.toggle-password:hover {
  color: var(--accent-orange);
}
.form-error {
  color: #ff4d4f;
  font-size: 0.93rem;
  margin-top: 4px;
  font-weight: 500;
}
.alert {
  width: 100%;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-danger {
  background: rgba(255, 77, 79, 0.08);
  color: #ff4d4f;
  border: 1px solid #ff4d4f33;
}
.alert-success {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  border: 1px solid #22c55e33;
}
.forgot-link, .signup-link {
  color: var(--accent-orange);
  font-size: 0.98rem;
  text-decoration: underline;
  transition: color 0.2s;
}
.forgot-link:hover, .signup-link:hover {
  color: var(--accent-orange-dark);
  text-shadow: 0 2px 8px var(--accent-orange)33;
}
/* Repel & shrink login button */
.login-btn {
  transition: all 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
  font-size: 1.08em;
  font-weight: 700;
  border-radius: 8px;
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18), 0 1.5px 0 0 rgba(255,255,255,0.04) inset;
  min-width: 120px;
  min-height: 38px;
  position: relative;
  overflow: hidden;
}
.login-btn.repel {
  width: 80px !important;
  min-width: 80px !important;
  font-size: 0.98em;
  background: #000 !important;
}
.login-btn.shrink {
  transform: scale(0.85);
  filter: blur(0.5px) brightness(0.92);
  background: #000 !important;
}
.login-btn:active {
  transform: scale(0.96);
  background: #000 !important;
}
.login-btn::before {
  content: '';
  position: absolute;
  left: -60%;
  top: 0;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.18) 100%);
  transform: skewX(-20deg) translateX(-100%);
  transition: transform 0.7s cubic-bezier(.4,2,.6,1);
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}
.login-btn:hover::before {
  transform: skewX(-20deg) translateX(60%);
}
.login-btn:hover, .login-btn:focus {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: 0 0 0 4px #fff3, 0 12px 40px 0 #fff2, 0 2px 8px 0 rgba(24,24,24,0.10);
  outline: none;
}
.demo-btn {
  background: rgba(255,124,43,0.08);
  color: var(--accent-orange);
  border: 1.5px solid var(--accent-orange);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 4px 8px 4px;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: inline-block;
  box-shadow: 0 2px 8px 0 var(--accent-orange)11;
}
.demo-btn:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange-dark);
  box-shadow: 0 8px 32px 0 var(--accent-orange-dark)22;
}

.login-glass-card:hover {
  box-shadow: 0 16px 48px 0 var(--accent-orange-dark)22, 0 2px 8px 0 rgba(24,24,24,0.10), 0 0 0 6px var(--accent-orange)33;
  border-color: var(--accent-orange);
  background: linear-gradient(120deg, #23243a 0%, #181f1f 100%) !important;
}
@media (max-width: 600px) {
  .login-glass-card {
    padding: 24px 8px 18px 8px;
    min-width: 0;
    max-width: 98vw;
  }
  .login-logo-img {
    max-width: 90px;
    max-height: 40px;
  }
}
@media (min-width: 900px) {
  .login-glass-card {
    max-width: 520px;
    min-width: 420px;
    padding: 48px 48px 40px 48px;
  }
}

/* Animated input entry */
.login-form .form-group {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: inputEntry 0.7s cubic-bezier(.4,2,.6,1) forwards;
}
.login-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.login-form .form-group:nth-child(2) { animation-delay: 0.25s; }
.login-form .form-group:nth-child(3) { animation-delay: 0.4s; }
@keyframes inputEntry {
  to { opacity: 1; transform: none; }
}

/* Add animated border for input fields */
.animated-input {
  position: relative;
  overflow: visible;
}
.animated-input::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--accent-orange), #fff, var(--accent-orange-dark));
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.animated-input:focus-within::after,
.animated-input:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.animated-input .login-input, .animated-input input.form-control {
  background: rgba(30,32,40,0.82);
  color: #fff;
  border: 1.5px solid #23243a;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 #0002;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.animated-input .login-input:focus, .animated-input input.form-control:focus {
  border-color: var(--accent-orange);
  background: rgba(40,40,60,0.98);
  box-shadow: 0 0 0 3px var(--accent-orange)33, 0 2px 8px 0 #0003;
}
.animated-input .login-input:hover, .animated-input input.form-control:hover {
  border-color: #fff;
  background: rgba(40,40,60,0.92);
  box-shadow: 0 0 0 2px #fff2, 0 2px 8px 0 #0002;
}

.input-icon, .animated-input .input-icon {
  color: var(--accent-orange);
  transition: color 0.2s, filter 0.2s;
  filter: drop-shadow(0 0 4px var(--accent-orange)33);
}
.animated-input .login-input:focus ~ .input-icon,
.animated-input .login-input:hover ~ .input-icon {
  color: #fff;
  filter: drop-shadow(0 0 8px #fff8);
}
.toggle-password {
  color: #bfc9d1;
  transition: color 0.2s;
}
.toggle-password:hover {
  color: var(--accent-orange);
}

.input-header-icon {
  display: inline-block;
  margin-right: 7px;
  color: #fe5500;
  font-size: 1.35em;
  vertical-align: middle;
  transition: color 0.2s, filter 0.3s, transform 0.3s;
}
/* Animate icon on input focus */
.animated-input:focus-within .input-header-icon {
  color: #fe5500;
  filter: drop-shadow(0 0 8px #fe5500cc);
  transform: scale(1.18) rotate(-6deg);
}
@keyframes iconPulse {
  0% { /* No filter or transform for text icons */ }
  100% { /* No filter or transform for text icons */ }
}
.login-input:focus {
  border-color: #fe5500;
  background: rgba(40,40,60,0.98);
  box-shadow: 0 0 0 3px #fe550044, 0 2px 8px 0 #0003, 0 0 24px 0 #fe550022;
  position: relative;
}
.login-input:focus::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -2px; height: 3px;
  background: linear-gradient(90deg, #fff 0%, #fe5500 60%, #fff 100%);
  border-radius: 2px;
  opacity: 0.7;
  animation: swoosh 0.5s cubic-bezier(.4,2,.6,1);
}
@keyframes swoosh {
  0% { width: 0; opacity: 0; }
  60% { width: 80%; opacity: 1; }
  100% { width: 100%; opacity: 0.7; }
}

.login-desc {
  color: #fff;
  opacity: 0.7;
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, #23243a 0%, #181f1f 100%);
  border-radius: 10px;
  padding: 7px 12px;
  box-shadow: 0 2px 8px 0 #0002;
  font-weight: 400;
  line-height: 1.5;
}
.input-desc {
  color: #fff8;
  font-size: 0.97rem;
  margin-top: 2px;
  font-style: italic;
  letter-spacing: 0.01em;
}
.field-header {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fe5500;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
  margin-left: 2px;
  text-shadow: 0 2px 8px #fe550022;
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
}
#showDevLogin {
  margin-top: 10px;
  border-radius: 8px;
  border: 2px solid var(--accent-orange);
  background: rgba(254,85,0,0.08);
  color: var(--accent-orange);
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 var(--accent-orange)11;
}
#showDevLogin:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 8px 32px 0 var(--accent-orange-dark)22;
}
#devLoginArea {
  background: rgba(30,32,40,0.92);
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 #0003;
  padding: 16px 10px 12px 10px;
  margin-bottom: 18px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  border: 1.5px solid var(--accent-orange);
}
#devLoginArea input {
  background: rgba(40,40,60,0.98);
  color: #fff;
  border: 1.5px solid #23243a;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 #0002;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
#devLoginArea input:focus {
  border-color: var(--accent-orange);
  background: rgba(60,60,80,0.98);
  box-shadow: 0 0 0 3px var(--accent-orange)33, 0 2px 8px 0 #0003;
}
#devLoginBtn {
  border-radius: 8px;
  background: linear-gradient(90deg, #fe5500 0%, #7d72f1 100%);
  color: #fff;
  font-weight: 700;
  border: 2px solid #fff;
  min-width: 120px;
  min-height: 38px;
  margin-left: 8px;
  transition: all 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
}
#devLoginBtn:hover {
  background: linear-gradient(90deg, #fff 0%, var(--accent-orange-dark) 100%);
  color: #23243a;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 4px var(--accent-orange)33;
}
#devConsole {
  margin-top: 24px;
  z-index: 10;
}
.dev-terminal-glass {
  background: linear-gradient(120deg, #23243a 0%, #181f1f 100%);
  border-radius: 18px;
  padding: 28px 18px;
  box-shadow: 0 8px 32px 0 #0008, 0 0 0 4px var(--accent-orange)22;
  max-width: 480px;
  margin: auto;
  border: 2.5px solid var(--accent-orange);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.7s cubic-bezier(.4,2,.6,1);
}
.dev-analytics {
  margin-bottom: 18px;
}
.dev-analytic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 7px;
  padding: 7px 10px;
  box-shadow: 0 1px 4px 0 #0002;
  position: relative;
}
.dev-analytic-row b {
  color: var(--accent-orange);
  font-weight: 600;
}
.dev-progress {
  flex: 1;
  height: 8px;
  background: #23243a;
  border-radius: 4px;
  margin-left: 10px;
  overflow: hidden;
  min-width: 60px;
  max-width: 120px;
  position: relative;
  box-shadow: 0 1px 4px 0 #0002;
}
.dev-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fe5500 0%, #7d72f1 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 0.7s cubic-bezier(.4,2,.6,1);
  box-shadow: 0 0 8px 0 var(--accent-orange)33;
}
#closeDevConsole {
  margin-top: 10px;
  border-radius: 8px;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 #fff2;
}
#closeDevConsole:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  box-shadow: 0 8px 32px 0 var(--accent-orange-dark)22;
}

@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;700&display=swap');

.dev-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24, 24, 32, 0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
.dev-modal-content {
  min-width: 340px;
  max-width: 520px;
  width: 98vw;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  background: linear-gradient(120deg, #23243a 0%, #181f1f 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 #0008, 0 0 0 4px var(--accent-orange)22;
  border: 2.5px solid var(--accent-orange);
  padding: 32px 18px 24px 18px;
  position: relative;
  animation: fadeIn 0.5s cubic-bezier(.4,2,.6,1);
  overflow: hidden;
}
.dev-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 1.04rem;
  color: #fff;
  margin-bottom: 10px;
}
.dev-table td {
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 7px;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  vertical-align: middle;
  border: none;
  transition: background 0.2s;
}
.dev-table tr:hover td {
  background: rgba(254,85,0,0.08);
}
.dev-table b {
  color: var(--accent-orange);
  font-weight: 600;
  font-family: inherit;
}
.dev-table .iconify {
  color: var(--accent-orange);
  font-size: 1.1em;
  margin-right: 4px;
  vertical-align: middle;
}
.dev-progress {
  display: inline-block;
  height: 8px;
  background: #23243a;
  border-radius: 4px;
  margin-left: 10px;
  overflow: hidden;
  min-width: 60px;
  max-width: 120px;
  position: relative;
  box-shadow: 0 1px 4px 0 #0002;
  vertical-align: middle;
}
.dev-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fe5500 0%, #7d72f1 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 0.7s cubic-bezier(.4,2,.6,1);
  box-shadow: 0 0 8px 0 var(--accent-orange)33;
}
#devStatusDot {
  box-shadow: 0 0 8px 2px #22c55e44;
  transition: background 0.3s, box-shadow 0.3s;
}
@media (max-width: 600px) {
  .dev-modal-content {
    min-width: 0;
    max-width: 98vw;
    padding: 18px 4px 12px 4px;
  }
  .dev-table td {
    font-size: 0.98rem;
    padding: 5px 4px;
  }
} 