/* Container centers the login card vertically and horizontally */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(6, 6, 113, 0.9), rgba(14, 39, 148, 0.8));
  padding: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 15px rgba(23, 42, 216, 0.15);
  flex-direction: column; /* für Logo + Card */
}

/* Logo styling */
.login-logo {
  max-width: 40%;      /* 40% so breit wie die Card */
  height: auto;
  margin-bottom: 40px;
}

/* The login card with subtle shadow and rounded corners + white-ish glow */
.login-card {
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(255 255 255 / 0.3);
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
}

/* Header styling with automatic responsive sizing */
.login-header h2 {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: clamp(1.2rem, 5vw, 1.5rem); /* passt sich Bildschirmbreite an */
  color: #333;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(255 255 255 / 0.5);
  word-wrap: break-word;
}

/* Optional: kleiner Untertitel */
.login-header .text-muted {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-shadow: 0 0 3px rgba(255 255 255 / 0.3);
}

/* Form group styling */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: #0768AF;
  outline: none;
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

/* Error messages */
.error-message {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 4px;
  text-shadow: 0 0 1px rgba(255 255 255 / 0.4);
}

/* Non-field error alert */
.alert.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 2px rgba(255 255 255 / 0.4);
}

/* Submit button styling */
.btn-login {
  width: 100%;
  padding: 10px 0;
  background-color: #0768AF;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4),
    0 0 10px rgba(255 255 255 / 0.25);
}

.btn-login:hover {
  background-color: #055188;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.6),
    0 0 15px rgba(255 255 255 / 0.35);
}

/* Footer im gleichen Look wie .login-card */
.login-footer-card {
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(255 255 255 / 0.3);
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
  margin-top: auto;
  text-align: center;
  color: #333;
  font-weight: 600;
  font-size: 0.70rem;
}

.login-footer-card .footer-inner {
  display: flex;
  justify-content: center; /* zentriert Text + Links */
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer-Links als Flex, damit mehrere Links sauber zentriert bleiben */
.login-footer-card .footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.login-footer-card .footer-links a {
  color: #0768AF;
  text-decoration: none;
  font-size: 0.7rem;
  margin-left: 0; /* entfernt evtl. Versatz */
}

/* Responsive adjustments for small screens */
@media (max-width: 480px) {
  .login-card {
    padding: 15px 20px;
    max-width: 300px;
  }

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

  .login-header .text-muted {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input {
    font-size: 0.85rem;
    padding: 7px 10px;
  }

  .btn-login {
    font-size: 0.95rem;
    padding: 9px 0;
  }

  .login-logo {
    max-width: 60%; /* etwas kleiner für kleine Bildschirme */
  }

  .login-footer-card {
    padding: 12px 14px;
    max-width: 300px;
    font-size: 0.7rem;
  }

  .login-footer-card .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .login-footer-card .footer-links a {
    margin-left: 0;
    margin-right: 8px;
    font-size: 0.7rem;
  }
}
