/* General */
body {
  font-family: "Poppins", sans-serif;
  margin: 0; padding: 0;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: #fff;
}

/* Auth Pages */
.auth-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.auth-container {
  background: #fff;
  color: #222;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-align: center;
  width: 350px;
}

.auth-container h2 { margin-bottom: 20px; }
.auth-container input {
  width: 100%; padding: 12px; margin: 10px 0;
  border: 1px solid #ddd; border-radius: 8px;
}
.auth-container button {
  width: 100%; padding: 12px;
  background: #2575fc; color: #fff;
  border: none; border-radius: 8px;
  cursor: pointer; font-size: 16px;
  transition: 0.3s;
}
.auth-container button:hover { background: #1a5ed1; }
.auth-container a { color: #2575fc; text-decoration: none; }

/* Dashboard */
.dash-header {
  background: #222;
  padding: 20px 10%;
  display: flex; justify-content: space-between; align-items: center;
}
.dash-header nav a {
  margin-left: 20px; color: #fff; text-decoration: none;
  transition: 0.3s;
}
.dash-header nav a:hover { color: #ffe082; }

.dashboard {
  padding: 40px 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

section {
  background: #fff;
  color: #222;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

section h2 { margin-bottom: 15px; }

button {
  background: #2575fc;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: #1a5ed1; }


#loginBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

#loginBtn:disabled {
  background: #6c757d; /* gray when disabled */
  cursor: not-allowed;
}

#loginBtn .loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px; /* spacing from text */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#signUpBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #28a745; /* green button */
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

#signUpBtn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

#signUpBtn .loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
}

