/* Global style for the membership website
 * Theme: soft pastel colours inspired by a youthful, feminine aesthetic.
 * Fonts and colours are chosen to be easy on the eyes while still
 * providing sufficient contrast.  We avoid heavy image backgrounds
 * to keep the site fast and lightweight.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
body {
    margin: 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd1dc, #ffe6ef);
    font-family: "Poppins", "PingFang SC", sans-serif;
}

.login-box {
    width: 100%;
    max-width: 520px;
    padding: 32px 30px;
}


html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #FDF5F8; /* very light pink background */
  color: #333;
}

/* Container utility */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 40px 0 20px;
}

header h1 {
  margin: 0;
  font-size: 2.4rem;
  color: #C35A82; /* soft rose */
}

header h2 {
  margin: 0;
  font-weight: 400;
  color: #777;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
  background: #9BC9DA; /* pastel blue */
  color: #fff;
}

.btn.btn-primary {
  background: #8BC34A; /* soft green for primary actions */
}

.btn.btn-danger {
  background: #E57373; /* soft red for negative actions */
}

.btn.btn-secondary {
  background: #B39DDB; /* pastel purple */
}

.btn:hover {
  opacity: 0.85;
}

/* Forms */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #C35A82;
  box-shadow: 0 0 0 2px rgba(195, 90, 130, 0.15);
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

table thead {
  background: #F7CFD9; /* light rose for table header */
}

table th, table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

table tbody tr:nth-child(even) {
  background: #FDF1F4; /* alternate row colour */
}

/* Alerts */
.alert {
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.alert-success {
  background: #E8F5E9;
  color: #388E3C;
  border-color: #C8E6C9;
}

.alert-error {
  background: #FFEBEE;
  color: #C62828;
  border-color: #FFCDD2;
}

/* Card layout for dashboards */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px;
  margin-bottom: 20px;
}

.card h3 {
  margin-top: 0;
  color: #C35A82;
  font-weight: 600;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.flex-column {
  flex: 1;
  min-width: 250px;
}

.logout-btn {
  float: right;
  margin-top: -40px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 10px 0;
  color: #999;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }
  table th, table td {
    font-size: 0.9rem;
  }
}