:root {
  --color-bg: #f5f7fa;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #1a202c;
  --color-muted: #718096;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-error: #dc2626;
  --color-error-bg: #fee2e2;
  --color-success: #16a34a;
  --color-success-bg: #dcfce7;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --font-main: 'Segoe UI', Roboto, Ubuntu, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  width: 100%;
  max-width: 420px;
}

h1, h2 {
  margin-top: 0;
  font-weight: 600;
  color: var(--color-text);
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color-muted);
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  background: #fff;
  color: var(--color-text);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
input:focus, select:focus {
  border-color: var(--color-accent);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.captcha-img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
}

button, .btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  text-align: center;
}
button:hover, .btn:hover {
  background: var(--color-accent-hover);
}

.msg {
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.msg.err {
  background: var(--color-error-bg);
  color: var(--color-error);
}
.msg.ok {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.top-bar {
  background: var(--color-accent);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table th, .table td {
  padding: 12px;
  text-align: left;
}
.table thead {
  background: var(--color-bg);
}
.table tbody tr:nth-child(even) {
  background: #f9fafb;
}
