/* Vollbild-Hintergrund in dunklem Rot / Dunkelgrau */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* diagonaler Verlauf mit Rot-Schwerpunkt */
    background: linear-gradient(135deg, #111827 0%, #1f2937 35%, #7f1d1d 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Karte in der Mitte */
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    padding: 28px 24px 24px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(248, 113, 113, 0.25);
    color: #e5e7eb;
    backdrop-filter: blur(18px);
}

/* Kopfbereich mit Logo-Kreis */
.login-header {
    text-align: center;
    margin-bottom: 20px;
}

/* rötlicher Kreis für das Logo */
.login-logo-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 9999px;
    /*background: radial-gradient(circle at 30% 20%, #fbbfbd, #b91c1c);*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*box-shadow: 0 6px 14px rgba(185, 28, 28, 0.7);*/
}

/* Logo-Grafik im Kreis */
.login-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header h1 {
    font-size: 1.4rem;
    margin: 4px 0;
    color: #f9fafb;
}

.login-header p {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Fehlermeldung */
.login-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.6);
    color: #fecaca;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

/* Formular-Layout */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-label {
    font-size: 0.82rem;
    color: #e5e7eb;
    text-align: center;
}

/* Eingabefelder */
.login-input {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background-color: rgba(15, 23, 42, 0.96);
    color: #f9fafb;
    padding: 8px 10px;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-input::placeholder {
    color: #6b7280;
}

.login-input:focus {
    border-color: #ef4444;
    /*box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.6);*/
    background-color: rgba(15, 23, 42, 1);
}

/* Login-Button in Rot-Tönen */
.login-button {
    margin-top: 6px;
    width: 100%;
    border-radius: 9999px;
    border: none;
    padding: 9px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(to right, #b91c1c, #ff4f4f);
    color: #f9fafb;
    /*box-shadow: 0 8px 16px rgba(185, 28, 28, 0.7);*/
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.login-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    /*box-shadow: 0 10px 18px rgba(185, 28, 28, 0.8);*/
}

.login-button:active {
    transform: translateY(0);
    /*box-shadow: 0 6px 12px rgba(185, 28, 28, 0.6);*/
}

.login-button:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    /*box-shadow: 0 10px 20px rgba(55, 65, 81, 0.6);*/
}

/* Footer */
.login-footer {
    display: flex;
    justify-content: center;
}

.login-footer-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Passwortfeld: Input + Icon als eine Einheit */
.password-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: rgba(15, 23, 42, 0.96);
  overflow: hidden; /* sorgt dafür, dass Radius sauber bleibt */
}

/* Input im Passwortfeld übernimmt NICHT die normalen Input-Border */
.password-field .login-input {
  border: 0;
  background: transparent;
  flex: 1;

  padding: 8px 10px;
  font-size: 0.9rem;
  color: #f9fafb;
  outline: none;
}

/* Fokus-Rahmen für die gesamte Einheit */
.password-field:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.6);
  background-color: rgba(15, 23, 42, 1);
}

/* Button rechts wie im Screenshot (eigener Bereich + Trennlinie) */
.password-toggle {
  width: 46px;
  border: 0;
  /*border-left: 1px solid rgba(148, 163, 184, 0.35);*/
  background: transparent; /* optional: leicht heller machen, siehe unten */
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: #9ca3af;
}

.password-toggle:hover {
  color: #e5e7eb;
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(239, 68, 68, 0.8);
  outline-offset: -2px;
  border-radius: 6px;
}


/* leichte Optimierung für sehr kleine Geräte */
@media (max-width: 360px) {
    .login-card {
        padding: 20px 16px 18px;
        border-radius: 14px;
    }

    .login-header h1 {
        font-size: 1.2rem;
    }
}
