:root {
  --primary-color: #22c55e;    /* Grün statt Blau */
  --secondary-color: #16a34a;  /* Dunkleres Grün für Hover */
  --background-color: #f8fafc;
  --text-color: #1e293b;
  --error-color: #ef4444;
  --success-color: #22c55e;
  --border-color: #e2e8f0;
  --input-bg: #ffffff;
  --shadow-color: rgb(148 163 184 / 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background-color);
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background: var(--input-bg);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px var(--shadow-color),
              0 2px 4px -2px var(--shadow-color);
  width: 100%;
  max-width: 420px;
  margin: 1rem;
}

.form-title {
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.input-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.input-group input {
  width: 100%;
  padding: 0.875rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--input-bg);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 var(--shadow-color);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgb(37 99 235 / 0.1);
}

.input-group label {
  position: absolute;
  left: 0.70rem;
  top: 0.875rem;
  font-size: 1rem;
  color: #64748b;
  transition: all 0.2s ease;
  background: var(--input-bg);
  padding: 0 0.25rem;
  pointer-events: none;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
}

.btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px 0 var(--shadow-color),
              0 1px 2px -1px var(--shadow-color);
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

.btn:hover:not(:disabled) {
  background-color: #0056b3;
}

.input-group button {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
}

.btn:active {
  transform: translateY(0);
}

footer{
  color: black;
  font-size: 1rem;
  font-weight: bold;
  margin-top:2rem;
}

.messageDiv {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.messageDiv.error {
  background: rgb(239 68 68 / 0.1);
  color: var(--error-color);
  border: 1px solid rgb(239 68 68 / 0.2);
}

.messageDiv.success {
  background: rgb(34 197 94 / 0.1);
  color: var(--success-color);
  border: 1px solid rgb(34 197 94 / 0.2);
}

#reset, .account {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

#reset:hover, .account:hover {
  color: var(--primary-color);
}

@media (max-width: 480px) {
  .container {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .form-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* z.B. in style.css oder im <style> Bereich deiner HTML */
#toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #22c55e;
    color: white;
    padding: 1.5rem 2.5rem;
    border-radius: 1.2rem;
    font-size: 1.2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    z-index: 9999;
    text-align: center;
}