/* modern-login.css — scoped styling for login.php / loginAgain.php pages */

.tf-login-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tf-login-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 32px 28px;
  box-sizing: border-box;
}

.tf-login-card h1 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #1a1a1a;
  letter-spacing: 0.2px;
}

.tf-login-error {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #c0392b;
  font-size: 14px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  text-align: center;
}

.tf-field {
  margin-bottom: 18px;
}

.tf-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.tf-field input[type="text"],
.tf-field input[type="password"] {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fafafa;
}

.tf-field input[type="text"]:focus,
.tf-field input[type="password"]:focus {
  outline: none;
  border-color: #b8895f;
  box-shadow: 0 0 0 3px rgba(184, 137, 95, 0.15);
  background: #fff;
}

.tf-submit-row {
  margin-top: 22px;
}

.tf-submit-row input[type="submit"] {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #b8895f;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tf-submit-row input[type="submit"]:hover {
  background: #a4784f;
}

.tf-links-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
}

.tf-links-row a {
  color: #8a6d4f;
  text-decoration: none;
}

.tf-links-row a:hover {
  text-decoration: underline;
}

/* Logged-in state */
.tf-account-card {
  text-align: center;
}

.tf-account-card .tf-greeting {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.tf-account-card .tf-account-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tf-account-card .tf-account-links a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  background: #f5f2ee;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.tf-account-card .tf-account-links a:hover {
  background: #ece6de;
}

.tf-account-card .tf-admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #8a6d4f;
  text-decoration: none;
}

.tf-account-card .tf-admin-link img {
  width: 18px;
  height: 18px;
}

@media (max-width: 420px) {
  .tf-login-card {
    padding: 24px 18px;
  }
}
