:root {
  --bg-color: #0a0a0a;
  --card-bg: #111;
  --accent: #00ff88;
  --accent-light: #33ffaa;
  --text-color: #e0e0e0;
  --muted: #666;
  --danger: #ff4d4d;
  --warning: #ffcc00;
  --info: #00ff88;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

header {
  background: linear-gradient(90deg, #005b36, #00ff88);
  color: #000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

header a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s ease-in-out;
}

header a:hover {
  color: #fff;
}

.header-user,
.header-link {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

main {
  width: 100%;
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  flex: 1 0 auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.3);
}

.card--flush {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

.alert-danger {
  background: rgba(255, 77, 77, 0.1);
  color: var(--danger);
  border-left: 3px solid var(--danger);
}

.alert-warning {
  background: rgba(255, 204, 0, 0.1);
  color: var(--warning);
  border-left: 3px solid var(--warning);
}

.alert-info {
  background: rgba(0, 255, 136, 0.1);
  color: var(--info);
  border-left: 3px solid var(--info);
}

label {
  font-weight: 600;
  color: var(--accent-light);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  max-width: 360px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  background: #000;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.button:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 10px var(--accent);
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  border-color: rgba(108, 117, 125, 0.4);
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  color: var(--text-color);
}

.details-table td {
  padding: 0.75rem;
}

.details-key {
  font-weight: 600;
  color: var(--accent-light);
  width: 30%;
}

.details-table tr {
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
}

.details-table tr:last-child {
  border-bottom: none;
}

.home-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.home-card {
  position: relative;
  border-radius: 14px;
  padding: 1.75rem;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--accent-light);
  transition: all 0.2s ease-in-out;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.3);
}

.home-card__title {
  font-size: 1.5rem;
  color: var(--accent);
}

.home-card__subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.home-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.section-spacer {
  margin-top: 2rem;
}

.muted {
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 2rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    margin: 2rem auto;
  }
}
