:root {
  --md-primary: #6750A4;
  --md-on-primary: #ffffff;
  --md-surface: #fdf8ff;
  --md-on-surface: #1c1b1f;
  --md-outline: #cac4d0;
  --md-radius: 12px;
  --md-elevation: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Roboto", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #eaddff, #d0bcff, #b69df8);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  transition: background 0.3s;
}

.container {
  background: var(--md-surface);
  padding: 2.5rem 3rem;
  border-radius: var(--md-radius);
  box-shadow: var(--md-elevation);
  text-align: center;
  color: var(--md-on-surface);
  animation: fadeIn 0.6s ease;
}

h1 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--md-on-surface);
}

input {
  padding: 0.7rem 1rem;
  width: 260px;
  border: 1px solid var(--md-outline);
  border-radius: var(--md-radius);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(103, 80, 164, 0.25);
}

button {
  margin-top: 1rem;
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: var(--md-radius);
  background: var(--md-primary);
  color: var(--md-on-primary);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

button:hover {
  background: #7f67be;
  box-shadow: 0 2px 8px rgba(103, 80, 164, 0.3);
  transform: translateY(-1px);
}

button:active {
  background: #4f378b;
  transform: scale(0.98);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* ===== Личный кабинет ===== */

body {
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 100vh;
  padding: 40px 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--md-outline);
  margin: 1.5rem 0;
}

.card {
  background: #fff;
  border: 1px solid var(--md-outline);
  border-radius: var(--md-radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--md-elevation);
}

.card h2 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--md-outline);
}

th {
  background: #f3edf7;
  color: var(--md-on-surface);
  font-weight: 500;
}

td.active {
  color: #0b7a00;
  font-weight: 500;
}

td.inactive {
  color: #b3261e;
  font-weight: 500;
}

.card button {
  margin-top: 0;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

td:nth-child(3) {
  text-align: center;
  font-weight: 500;
}