/* ======================================
   LOGIN.CSS — Centered Modern Layout (fixed)
   ====================================== */

:root {
  --brand-bg: linear-gradient(145deg, #1e1f3a 0%, #2a2962 100%);
  --brand-accent: #6a5acd;
  --text-dark: #222;
}

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

html, body, #app {
  height: 100%;
  width: 100%;
}

body {
  background: var(--brand-bg);
  font-family: "Eras Light ITC", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.login-card {
  background: #fff;
  color: var(--text-dark);
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

.brand .logo {
  width: 260px;
  height: auto;
  margin-bottom: 30px;
}

.login-form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.login-form input:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.25);
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--brand-accent);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: #5a4bc4;
}

.error-msg {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .login-card {
    padding: 30px 25px;
  }
  .brand .logo {
    width: 200px;
  }
}
