* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f0f2f5;
  color: #1a2027;
  min-height: 100vh;
}

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 32px;
  width: 100%;
  max-width: 400px;
}

.auth-card h1 {
  margin: 0 0 20px;
  font-size: 24px;
  text-align: center;
}

.alert {
  background: #fdecea;
  color: #b3251b;
  border: 1px solid #f5c6c0;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.form-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.form-field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
  width: 100%;
  padding: 11px 12px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: #1d4ed8;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid currentColor;
  width: auto;
  padding: 7px 14px;
  font-weight: 500;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.alert-success {
  background: #e7f9ee;
  color: #166534;
  border-color: #b7e6c8;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-head h2 {
  margin: 0;
}

.btn-link {
  display: inline-block;
  padding: 8px 14px;
  background: transparent;
  color: #2563eb;
  border: 1px solid #bfd3fb;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.btn-link:hover {
  background: #eef4ff;
}

.panel h3 {
  margin: 6px 0 14px;
  font-size: 17px;
}

hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 22px 0;
}

.auth-alt {
  text-align: center;
  font-size: 14px;
  margin-top: 18px;
  color: #555;
}

.auth-alt a {
  color: #2563eb;
  text-decoration: none;
}

.auth-alt a:hover {
  text-decoration: underline;
}

.app-header {
  background: #1f2937;
  color: #fff;
}

.app-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-name {
  font-size: 14px;
}

.app-main {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 20px;
}

.panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 24px;
}

.panel h2 {
  margin: 0 0 10px;
}