:root {
  --sidebar-bg: #1f2933;
  --sidebar-text: #e5e7eb;
  --sidebar-text-muted: #9ca3af;

  --accent-orange: #f97316;
  --accent-orange-dark: #ea580c;

  --card-bg: #ffffff;
  --card-border: #e5e7eb;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  height: 100%;
}

body {
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, #1f2933, #111827 40%, #020617 80%);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center container */
.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.login-card {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.4);
  overflow: hidden;
}

/* Orange header strip */
.login-card-header {
  background: var(--accent-orange);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-logo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fef08a, #f97316 60%, #b91c1c 100%);
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.6);
}

.login-header-text-main {
  font-size: 0.95rem;
  font-weight: 600;
}

.login-header-text-sub {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Card body */
.login-card-body {
  padding: 18px 20px 16px;
  color: #111827;
}

.login-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 16px;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 4px;
}

.login-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
}

.login-button {
  margin-top: 6px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-orange);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.05s ease;
}

.login-button:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-1px);
}

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

/* Error box */
.login-error {
  margin-bottom: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.login-footer {
  padding: 8px 20px 14px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.78rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.login-footer span {
  white-space: nowrap;
}

/* "Contact admin" text */
.login-help {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Responsive tweaks */
@media (max-width: 520px) {
  .login-card {
    border-radius: 0;
    box-shadow: none;
  }
}
