* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 500px;
}

.login-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 20px;
  text-align: center;
}

.logo {
  width: 100px;
  height: 100px;
  filter: brightness(0) invert(1);
}

.form-section {
  padding: 30px 20px;
}

.form-section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #1c1e21;
  font-size: 24px;
}

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

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f3f4f6;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.error {
  display: block;
  color: #ef4444;
  font-size: 12px;
  margin-top: 5px;
  min-height: 18px;
}

.login-btn,
.create-account-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.divider {
  text-align: center;
  margin: 20px 0;
  color: #9ca3af;
  font-size: 14px;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 48%;
  height: 1px;
  background-color: #e5e7eb;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.create-account-btn {
  background-color: #31a24c;
  color: white;
  margin-bottom: 15px;
}

.create-account-btn:hover {
  background-color: #2d8c41;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(49, 162, 76, 0.4);
}

.footer-links {
  text-align: center;
  padding: 15px 20px;
  border-top: 1px solid #e5e7eb;
}

.footer-links a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Modální okno */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #1c1e21;
  font-size: 20px;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close:hover {
  color: #1c1e21;
}

/* Responsive */
@media (max-width: 600px) {
  .login-box {
    border-radius: 0;
  }

  .form-section {
    padding: 20px 15px;
  }

  .form-section h2 {
    font-size: 20px;
  }

  .modal-content {
    width: 95%;
  }
}

/* Success message */
.success {
  background-color: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: none;
  animation: slideIn 0.3s ease;
}

.success.show {
  display: block;
}
