body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(120deg,rgb(255, 255, 255),rgb(34, 80, 230),rgb(255, 255, 255));
  background-size: 400% 400%;
  animation: moveBackground 20s ease infinite;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  position: relative;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #a19f9f;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transition: transform 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

.lang-switcher-login {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
}

.lang-switcher-login .lang-switcher-form {
  margin: 0;
}

.lang-switcher-login .lang-switcher-btn {
  border: 1px solid #a19f9f;
  background-color: rgba(255, 255, 255, 0.6);
  color: #555;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.lang-switcher-login .lang-switcher-btn:hover {
  background-color: rgb(96, 156, 252);
  color: white;
}

.lang-switcher-login .lang-switcher-btn.active {
  background-color: rgb(66, 135, 245);
  color: white;
}

h1 {
  margin-bottom: 10px;
  font-size: 24px;
}

.intro {
  margin-bottom: 20px;
  color: #555;
}

.project-title {
  font-size: 16px;
  margin: 20px 0;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: rgb(66, 135, 245);
  outline: none;
}

button#submit-btn {
  width: 100%;
  background-color: rgb(66, 135, 245);
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

button#submit-btn:hover {
  background-color: rgb(96, 156, 252);
}

button#submit-btn:disabled {
  background-color: #bbb;
  cursor: not-allowed;
}

.loader {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== CHYBOVÉ ZPRÁVY ========== */
.chyba {
  position: relative;
  padding: 15px 20px;
  margin: 12px 0;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  overflow: hidden;
  z-index: 1;
}

.chyba.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.chyba.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.chyba.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}
.chyba.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.chyba::before {
  margin-right: 8px;
  font-size: 18px;
}
.chyba.success::before { content: "✅"; }
.chyba.error::before { content: "❌"; }
.chyba.warning::before { content: "⚠️"; }
.chyba.info::before { content: "ℹ️"; }

.chyba .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.chyba .close-btn:hover {
  color: #000;
}

@keyframes moveBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}