/* Virtual Factory — login (původní design ze starého serveru) */
:root {
  --primary-color: #3b82f6;
  --primary-hover-color: #2563eb;
  --dark-bg: #111827;
  --medium-bg: #1f2937;
  --light-text: #f3f4f6;
  --gray-text: #9ca3af;
  --input-bg: #374151;
  --error-bg: #450a0a;
  --error-text: #fca5a5;
  --error-border: #991b1b;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-container {
  width: 100%;
  max-width: 400px;
  background-color: var(--medium-bg);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logo-image {
  width: 100%;
  height: auto;
  display: block;
}

.content-wrapper {
  padding: 2.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
}

.error-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
  border-radius: 0.375rem;
  text-align: center;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-text);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--input-bg);
  border: 1px solid transparent;
  border-radius: 0.375rem;
  color: var(--light-text);
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-input::placeholder {
  color: var(--gray-text);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.submit-button {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--primary-color);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  margin-top: 1rem;
}

.submit-button:hover {
  background-color: var(--primary-hover-color);
}

.submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

@media (max-width: 560px) {
  .content-wrapper {
    padding: 2rem 1.5rem;
  }
}
