* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #1e272e 0%, #2d3436 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body { overflow: hidden; }

/* Animated background: diagonal rows of tiny VIS logos, each row at its own speed */
.login-bg {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.login-stripe {
  flex: 0 0 36px;
  height: 36px;
  background: url("../../logo.svg") repeat-x;
  background-size: 97px 36px;
  opacity: 0.10;
  animation-name: stripeScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: background-position;
}
.login-stripe--rev { animation-direction: reverse; }
.login-stripe--white { filter: brightness(0) invert(1); opacity: 0.12; }  /* red SVG → white logos */
@keyframes stripeScroll { from { background-position-x: 0; } to { background-position-x: -97px; } }
@media (prefers-reduced-motion: reduce) { .login-stripe { animation: none !important; } }

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo img {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 4px;
}

.login-logo p {
  color: #95a5a6;
  font-size: 0.88em;
  margin-top: 4px;
}

.form-head {
  font-size: 1.1em;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
}

.error-message {
  background: #fff0f0;
  border: 1px solid #ffc0c0;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.88em;
  font-weight: 500;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82em;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.demo-input-box {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  color: #2c3e50;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafbfc;
}

.demo-input-box:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
  background: #fff;
}

.btn-login {
  width: 100%;
  padding: 13px;
  background-color: #c0392b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.btn-login:hover { background-color: #a93226; }
.btn-login:active { transform: scale(0.98); }

.error-info {
  color: #e74c3c;
  font-size: 0.82em;
  margin-left: 5px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .login-card { padding: 28px 20px; border-radius: 10px; }
}
