/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background: #f4f6f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  color: #333;
}

h1 {
  font-weight: 600;
  margin-bottom: 20px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

h2 {
  text-align: center;
  margin-bottom: 28px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: 0.2s;
}

input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 6px rgba(0,123,255,0.3);
}

button {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

button:hover {
  opacity: 0.9;
}

#login-btn, #register-btn {
  background: #007bff;
  color: white;
}

#logout-btn {
  background: #ff4d4d;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  white-space: nowrap;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
  flex-wrap: wrap; /* allows logout button to move if needed */
  gap: 12px;       /* spacing between email + logout */
}

.row strong {
  font-size: 20px;
}

.row div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.row button {
  background: #e0e0e0;
  color: #333;
  font-size: 24px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

#crunches-count,
#pullups-count {
  font-size: 22px;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.hidden {
  display: none;
}

#auth-message, #save-message {
  text-align: center;
  margin-top: 12px;
  color: #d9534f;
  font-weight: 500;
}

.top-row {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers horizontally */
  gap: 10px;
  margin-bottom: 20px;
}

#user-email {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  word-break: break-all;
}
