
/* -----------------------------
   CENTER WRAPPER
------------------------------ */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 1rem;
}

/* -----------------------------
   CARD
------------------------------ */
.login-card {
  width: 100%;
  max-width: 380px;

  padding: 24px;
  border-radius: 14px;

  background: var(--entry);
  border: 1px solid var(--border);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* -----------------------------
   INPUT (works for BOTH email + code)
------------------------------ */
.login-card input {
  width: 100%;
  padding: 12px 14px;

  font-size: 16px;
  border-radius: 8px;

  border: 1px solid var(--border);

  background: var(--theme);
  color: var(--primary);

  outline: none;
}

/* focus state */
.login-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(100, 100, 255, 0.15);
}

/* -----------------------------
   BUTTON
------------------------------ */
.login-card button {
  width: 100%;
  padding: 12px 14px;

  font-size: 15px;
  font-weight: 500;

  border-radius: 8px;

  border: 1px solid var(--primary);

  background: var(--primary);
  color: var(--theme);

  cursor: pointer;

  transition: all 0.2s ease;
}

.login-card button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* only login buttons, not global site buttons */
.login-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -----------------------------
   MESSAGE AREA
------------------------------ */
#msg {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  opacity: 0.9;
}

#msg.success {
  color: #4caf50;
}

#msg.error {
  color: #e53935;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  margin-top: 1rem;

  border-radius: 8px;
  background: var(--primary);
  color: var(--theme) !important;

  text-decoration: none;
  font-weight: 500;

  transition: all 0.2s ease;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}