* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f9f9f9;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.auth-container {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  text-align: center;
  animation: fadeInUp 0.4s ease-in-out;
}

.auth-container h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #111;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-container input {
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.auth-container input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.auth-container button {
  padding: 14px;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.auth-container button:hover {
  background: #333;
}

.auth-container p {
  margin-top: 18px;
  font-size: 14px;
  color: #555;
}

.auth-container a {
  color: #111;
  font-weight: 500;
  text-decoration: none;
}

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

.input-error {
  border-color: #cf3b3b !important;
  box-shadow: 0 0 0 3px rgba(207, 59, 59, 0.06);
}

.error-msg {
  margin-top: 6px;
}

.mini-toast {
  border-radius: 8px;
  padding: 10px 12px;
}

.nav-user {
  font-size: 14px;
  margin-right: 6px;
  color: #111;
  font-weight: 500;
}

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

/* Profile Page Styles */
.profile-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 2rem;
}

.profile-info .profile-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.profile-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.profile-card h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.profile-card p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 18px;
}

.profile-card .btn,
#logoutBtn {
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-card .btn:hover,
#logoutBtn:hover {
  background: #cf3b3b;
}

.profile-orders h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: #222;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 70vh;
  overflow-y: auto;
}

.order-item {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item:hover {
  transform: translateY(-2px);
}

.order-item h4 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: #111;
}

.order-item p {
  margin: 0 0 4px 0;
  color: #555;
  font-size: 0.98rem;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-wrapper {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin: 24px auto;
  }

  .orders-list {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .profile-card h2 {
    font-size: 1.5rem;
  }

  .profile-card p {
    font-size: 1rem;
  }

  #logoutBtn {
    padding: 8px 20px;
    font-size: 0.95rem;
  }
}
