* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  color: #1f2937;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.card {
  background: white;
  width: 100%;
  max-width: 760px;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  padding: 32px;
}

.auth-card {
  max-width: 720px;
}

.dashboard-card {
  max-width: 900px;
}

h1, h2 {
  margin-top: 0;
}

.subtitle {
  color: #6b7280;
  margin-bottom: 20px;
}

.tab-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn,
.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 15px;
}

.tab-btn {
  background: #e5e7eb;
}

.tab-btn.active {
  background: #2563eb;
  color: white;
}

.primary-btn {
  background: #2563eb;
  color: white;
  width: 100%;
  margin-top: 10px;
}

.secondary-btn {
  background: #111827;
  color: white;
}

.form-section {
  display: block;
}

.hidden {
  display: none;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 14px;
}

input {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.message.success {
  background: #dcfce7;
  color: #166534;
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-panel {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  background: #f9fafb;
}

.notes-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .grid-two,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }
}
