/* ── Landing Page Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

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

html, body {
  height: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Main Container ── */
.landing-container {
  width: 100%;
  max-width: 520px;
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* ── Logo ── */
.landing-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Club Title ── */
.landing-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a3a1a;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.landing-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: #666;
  text-align: center;
  margin-bottom: 32px;
}

/* ── Auth Section ── */
.auth-section {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  animation: slideUp 0.5s ease-out;
}

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

.auth-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin-bottom: 16px;
}

.auth-error {
  color: #c53030;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 12px;
  display: none;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 8px 12px;
}

.auth-error.visible {
  display: block;
}

/* ── Code Input ── */
.code-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.code-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-family: 'Open Sans', sans-serif;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.code-input:focus {
  border-color: #2c5282;
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

.code-submit {
  padding: 12px 20px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  background: #2c5282;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.code-submit:hover {
  background: #1e3a5f;
}

.code-submit:active {
  transform: scale(0.97);
}

/* ── Auth Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #a0aec0;
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ── Demo Button ── */
.demo-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  background: #fff;
  color: #4a5568;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}

.demo-btn:hover {
  border-color: #a0aec0;
  background: #f7fafc;
}

.demo-btn:active {
  transform: scale(0.97);
}

/* ── Navigation Cards ── */
.nav-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
  animation: fadeIn 0.4s ease-out;
}

.nav-cards.visible {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.nav-card:hover {
  border-color: #2c5282;
  box-shadow: 0 4px 16px rgba(44, 82, 130, 0.12);
  transform: translateY(-2px);
}

.nav-card:active {
  transform: translateY(0);
}

.nav-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.nav-card-icon.wrapped {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 1.5rem;
}

.nav-card-icon.mobile {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
  font-size: 1.5rem;
}

.nav-card-icon.desktop {
  background: linear-gradient(135deg, #2c5282 0%, #4299e1 100%);
  color: #fff;
  font-size: 1.5rem;
}

.nav-card-text {
  flex: 1;
}

.nav-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 2px;
}

.nav-card-desc {
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.3;
}

.nav-card-arrow {
  font-size: 1.2rem;
  color: #a0aec0;
  transition: transform 0.2s;
}

.nav-card:hover .nav-card-arrow {
  transform: translateX(4px);
  color: #2c5282;
}

/* ── Welcome message ── */
.welcome-msg {
  display: none;
  text-align: center;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: #2d6a2d;
  font-weight: 600;
}

.welcome-msg.visible {
  display: block;
}

/* ── Privacy Consent ── */
.privacy-consent {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  animation: fadeIn 0.4s ease-out;
}

.privacy-consent.visible {
  display: block;
}

.privacy-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #1a3a1a;
  margin-bottom: 10px;
  text-align: center;
}

.privacy-text {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 14px;
}

.privacy-text p {
  margin-bottom: 8px;
}

.privacy-text a {
  color: #2c5282;
  text-decoration: underline;
}

.privacy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #333;
  cursor: pointer;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.privacy-checkbox-label:active {
  background: #edf2f7;
}

.privacy-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  accent-color: #2c5282;
  cursor: pointer;
}

.privacy-accept-btn {
  width: 100%;
}

.privacy-accept-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Footer Links ── */
.footer-links {
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #2c5282;
  text-decoration: underline;
}

/* ── Admin Section ── */
.admin-section {
  width: 100%;
  margin-top: 32px;
  padding-bottom: 24px;
}

.admin-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #a0aec0;
  font-size: 0.75rem;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  padding: 8px;
  text-align: center;
  transition: color 0.2s;
}

.admin-toggle:hover {
  color: #718096;
}

.admin-form-container {
  display: none;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.3s ease-out;
}

.admin-form-container.visible {
  display: block;
}

.admin-form-container label {
  display: block;
  font-size: 0.8rem;
  color: #718096;
  margin-bottom: 6px;
  font-weight: 600;
}

.admin-input-group {
  display: flex;
  gap: 8px;
}

.admin-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: 'Open Sans', sans-serif;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus {
  border-color: #3a7d3a;
}

.admin-submit {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  background: #3a7d3a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-submit:hover {
  background: #2d6a2d;
}

.admin-error {
  color: #c53030;
  font-size: 0.8rem;
  margin-top: 8px;
  display: none;
  text-align: center;
}

.admin-error.visible {
  display: block;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .landing-container {
    padding: 24px 16px 24px;
  }

  .landing-logo {
    width: 90px;
  }

  .landing-title {
    font-size: 1.15rem;
  }

  .auth-section {
    padding: 20px 16px;
  }

  .code-input-group {
    flex-direction: column;
  }

  .code-submit {
    width: 100%;
  }

  .nav-card {
    padding: 14px 16px;
  }

  .privacy-checkbox-label {
    padding: 12px;
    gap: 12px;
  }

  .privacy-checkbox-label input[type="checkbox"] {
    width: 26px;
    height: 26px;
  }
}
