/* =========================================
   PATIENT LOGIN (External Webflow Template)
   ========================================= */
.patient-portal-section {
  padding: 64px 0;
}

.patient-portal-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  padding: 28px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.patient-portal-head {
  text-align: center;
  margin-bottom: 18px;
}

.patient-portal-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: radial-gradient(circle at 30% 30%, #4f46e5, #0ea5e9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.patient-portal-title {
  font-size: 24px;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.patient-portal-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #64748b;
}

.patient-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.patient-field { display: flex; flex-direction: column; gap: 8px; }

.patient-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.patient-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
}

.patient-input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.patient-primary-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
}

.patient-primary-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.patient-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 12px;
}

.patient-alert.is-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.patient-alert.is-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.patient-alert.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.patient-muted { color: rgba(29, 78, 216, 0.75); margin-top: 4px; }

.patient-help {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.patient-help-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.patient-help-item {
  font-size: 13px;
  color: #64748b;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 4px 10px;
}

.patient-back {
  text-align: center;
  margin-top: 16px;
}

.patient-back a {
  color: #0f766e;
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.patient-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 6px;
}

.patient-link-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: #0f766e;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.patient-hidden { display: none !important; }

@media screen and (max-width: 767px) {
  .patient-portal-section { padding: 28px 0; }
  .patient-portal-card { padding: 20px; border-radius: 20px; }
}
