/* Login — Sensor Compras */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0f1117;
  color: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: #1e2130;
  border: 1px solid #2d3148;
  border-radius: 16px;
  padding: 48px 36px;
}

/* Brand */
.login-brand {
  text-align: center;
  margin-bottom: 36px;
}

.brand-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f8cff 0%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.25);
}

.login-brand h1 {
  font-size: 22px;
  font-weight: 700;
  color: #e8eaed;
  margin-bottom: 4px;
}

.login-brand p {
  color: #6b7394;
  font-size: 14px;
  font-weight: 400;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #9aa0b8;
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  background: #161824;
  border: 1px solid #2d3148;
  border-radius: 10px;
  color: #e8eaed;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
  border-color: #4f8cff;
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15);
}

.login-input::placeholder {
  color: #4a4f6a;
}

/* Button */
.login-btn {
  width: 100%;
  padding: 14px 24px;
  margin-top: 8px;
  background: linear-gradient(135deg, #4f8cff 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(79, 140, 255, 0.2);
}

.login-btn:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(79, 140, 255, 0.35);
}

.login-btn:active {
  transform: scale(0.98);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error */
.error-msg {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 10px;
  color: #f87171;
  font-size: 13px;
  text-align: center;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Responsive */
@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px;
  }
}
