/* WiFi Captive Portal - guest-facing styles
   Kept deliberately simple and dependency-free (no build step, no framework)
   so branding changes (colors via CSS variable, logo/background via admin
   upload) apply without touching this file. */

:root {
  --primary-color: #2563eb;
  --text-color: #1f2937;
  --muted-color: #6b7280;
  --border-color: #e5e7eb;
  --bg-color: #f3f4f6;
  --error-color: #dc2626;
  --success-color: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
}

body.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portal-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 32px 28px;
}

.portal-logo {
  max-width: 220px;
  max-height: 90px;
  display: block;
  margin: 0 auto 20px;
}

.portal-title {
  text-align: center;
  font-size: 22px;
  margin: 0 0 20px;
}

.portal-welcome {
  color: var(--muted-color);
  text-align: center;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-color);
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus {
  border-color: var(--primary-color);
}

.otp-input {
  letter-spacing: 8px;
  font-size: 24px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

button.btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}

button.btn-primary:hover { opacity: 0.92; }
button.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

button.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  text-align: center;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.alert-error { background: #fef2f2; color: var(--error-color); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success-color); border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.terms-text {
  font-size: 12px;
  color: var(--muted-color);
  text-align: center;
  margin-top: 18px;
  line-height: 1.5;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success-color);
  font-size: 32px;
}

.expiry-note {
  text-align: center;
  color: var(--muted-color);
  font-size: 14px;
  margin-top: 8px;
}

.email-display {
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
}
