:root {
  --bg-dark: #121212;
  --bg-darker: #0a0a0a;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-red: #ff3e3e;
  --accent-orange: #ff6d3a;
  --error-red: #ff4444;
  --success-green: #4caf50;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--text-primary);
  padding: 20px;
}

.login-container {
  background-color: var(--bg-darker);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  padding: 30px;
  border-top: 3px solid var(--accent-red);
}

.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.login-header h1 {
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
  font-size: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(255, 109, 58, 0.2);
}

.btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
}

.alert-container {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.alert {
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  opacity: 0.5;
  transform: translateY(-100px);
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert.show {
  opacity: 1;
  transform: translateY(0);
}

.alert-error {
  background-color: rgba(255, 68, 68, 0.5);
  color: var(--error-red);
  border-left: 4px solid var(--error-red);
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.5);
  color: var(--success-green);
  border-left: 4px solid var(--success-green);
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0 0 10px;
}

.footer-links {
  margin-top: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--accent-orange);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
