/* --- Global Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Grundlayout --- */
body {
  background: linear-gradient(135deg, #eef2f7, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  color: #1d1d1f;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 420px;
  transition: all 0.3s ease;
}

/* --- Box Style --- */
.auth-box,
.app-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.auth-box:hover,
.app-box:hover {
  transform: translateY(-5px);
}

/* --- Überschriften --- */
h1 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  color: #6e6e73;
  text-align: center;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  font-size: 1rem;
  background-color: #f9f9fa;
  transition: all 0.2s ease;
}

input:focus {
  border-color: #0071e3;
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 113, 227, 0.2);
}

/* --- Checkbox --- */
.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* --- Buttons --- */
.btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0071e3, #005bb5);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #005bb5, #003f7f);
  transform: translateY(-2px);
}

.btn.small {
  width: auto;
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- Fehlermeldung --- */
.error {
  background: #fff2f2;
  color: #b91c1c;
  border-left: 4px solid #dc2626;
  padding: 10px;
  margin-top: 12px;
  border-radius: 10px;
  animation: shake 0.3s ease-in-out;
}

.hidden {
  display: none;
}

/* --- Benutzerinfo --- */
.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f7;
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #1d1d1f;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* --- Karten --- */
.card {
  background: #f5f5f7;
  padding: 20px;
  border-radius: 16px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.data-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5ea;
  font-size: 0.95rem;
}

.data-row:last-child {
  border-bottom: none;
}

.data-row.highlight {
  background: #0071e3;
  color: white;
  border-radius: 10px;
  font-weight: 600;
  padding: 12px;
  margin: 6px 0;
}

/* --- Footer --- */
footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #6e6e73;
}

/* --- Loading --- */
.loading {
  text-align: center;
  color: #6e6e73;
  font-size: 1.2rem;
}

/* --- Animation --- */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/* --- Mobile --- */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  .auth-box,
  .app-box {
    padding: 20px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .data-row {
    font-size: 0.9rem;
  }
  .btn {
    padding: 12px;
  }
  .user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
