@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f4f6fb;
  color: #111827;
}

/* =================================================
   AUTH PAGES (LOGIN / REGISTER)
   ================================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-left h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.auth-left p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.auth-card h2 {
  margin-bottom: 6px;
}

.auth-card p {
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}

.auth-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
  font-size: 14px;
}

.auth-card button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.auth-card .link {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: #4f46e5;
  text-decoration: none;
}

.error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-left {
    display: none;
  }
}

/* =================================================
   DASHBOARD
   ================================================= */

.dash-header {
  background: #4f46e5;
  color: #fff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logout {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.container {
  max-width: 1000px;
  margin: 32px auto;
  padding: 0 16px;
}

/* ADD EXPENSE CARD */
.add-expense-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  margin-bottom: 32px;
}

.add-expense-card h3 {
  margin-bottom: 18px;
}

.expense-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
}

.expense-form input,
.expense-form select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.expense-form button {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(79,70,229,0.35);
}

/* EXPENSE LIST */
.expense-list h3 {
  margin-bottom: 16px;
}

.date-group {
  font-size: 14px;
  color: #6b7280;
  margin: 24px 0 10px;
}

.expense-item {
  background: #fff;
  padding: 16px 18px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.expense-item .meta {
  font-size: 13px;
  color: #6b7280;
}

.amount {
  font-weight: 600;
}

@media (max-width: 768px) {
  .expense-form {
    grid-template-columns: 1fr;
  }
}
